Open Tobertet opened 1 year ago
This issue was mentioned 8 months ago and still not fixed :/ looks like this library is not being maintened anymore
@ghmendonca @Tobertet, have you found a solution for that?
@kmefeu no, I ended up adding this comment in the line above the provider:
{/* @ts-expect-error https://github.com/yamankatby/react-native-material/issues/56*/}
@ghmendonca Thank you for your feedback
Whenever you wrap something with the ThemeProvider in order to customize the theme, Typescript complains about this:
In order to solve it I had to go to ThemeProvider.d.ts and change line 34 from
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
toexport declare const ThemeProvider: React.FC<PropsWithChildren<ThemeProviderProps>>;
It looks like this is simply a TS typing issue. I would open a PR myself but unfortunately I don't have much time lately.