I was trying to make a reusable component using react-native-paper
the problem comes when I try to use extends a type from the package
import React from 'react';
import {Button, Text} from 'react-native-paper';
export type ButtonProps = React.ComponentProps<typeof Button>;
type CustomButtonProps = ButtonProps & {
title: string;
};
export const ButtonPaper: React.FC<CustomButtonProps> = ({title, ...props}) => {
return (
<Button mode="contained" {...props}>
welcome
</Button>
);
};
everything is fine so far but when I try to use the component on the screen, typescript gives me that error
any solution for that?