When try to use this example in my project
export type AppTheme = typeof myTheme;
export const useAppTheme = () => useTheme();
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(myTheme);
When try to use this example in my project
export type AppTheme = typeof myTheme;
export const useAppTheme = () => useTheme();
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(myTheme);