react-native-paper
react-native-paper copied to clipboard
useTheme function need more explanation
When try to use this example in my project
export type AppTheme = typeof myTheme; export const useAppTheme = () => useTheme<AppTheme>();
This not overwrite defaultTheme with myTheme, I investigate the source code of useTheme and I discover that have a theme parameter that not is in the example:
export const useAppTheme = () => useTheme<AppTheme>(myTheme);