forked from Ivasoft/mattermost-mobile
[Gekidou] Avoid technical debt (#5795)
* Apply Status bar color * useIsTablet hook instead of useSplitView in combination with the constant * Constants clean up
This commit is contained in:
@@ -56,7 +56,13 @@ const ThemeProvider = ({currentTeamId, children, themes}: Props) => {
|
||||
}
|
||||
}
|
||||
|
||||
return getDefaultThemeByAppearance();
|
||||
const defaultTheme = getDefaultThemeByAppearance();
|
||||
EphemeralStore.theme = defaultTheme;
|
||||
requestAnimationFrame(() => {
|
||||
setNavigationStackStyles(defaultTheme);
|
||||
});
|
||||
|
||||
return defaultTheme;
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user