react-native-paper icon indicating copy to clipboard operation
react-native-paper copied to clipboard

useTheme function need more explanation

Open adrianrz opened this issue 7 months ago • 1 comments

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);

adrianrz avatar Jul 17 '24 13:07 adrianrz