You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Export the partial theme type (ThemeProp) from react-native-paper #5312
Is your feature request related to a problem? Please describe.
PaperProvider and ThemeProvider take a partial theme in theme, but react-native-paper exports no type for it, so a partial theme kept in a variable is hard to type. import type { ThemeProp } from 'react-native-paper' fails with TS2305: Module '"react-native-paper"' has no exported member 'ThemeProp', and Theme requires every key (TS2740: Type '{ primary: string; }' is missing the following properties from type 'ThemeColors').
Describe the solution you'd like
import type { ThemeProp } from 'react-native-paper' works, as the type of the providers' theme prop.
Activity