From 08c368c41e89b873f504478f6bb27778970cc44e Mon Sep 17 00:00:00 2001 From: Gleidson Daniel Silva Date: Fri, 15 Jul 2022 13:39:07 -0300 Subject: [PATCH] [IMPROVE] Set native theme when launching the app (#4365) --- app/index.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/index.tsx b/app/index.tsx index a29f8bbe..8084bbe4 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -28,7 +28,14 @@ import { ThemeContext, TSupportedThemes } from './theme'; import { debounce, isTablet } from './lib/methods/helpers'; import EventEmitter from './lib/methods/helpers/events'; import { toggleAnalyticsEventsReport, toggleCrashErrorsReport } from './lib/methods/helpers/log'; -import { getTheme, initialTheme, newThemeState, subscribeTheme, unsubscribeTheme } from './lib/methods/helpers/theme'; +import { + getTheme, + initialTheme, + newThemeState, + setNativeTheme, + subscribeTheme, + unsubscribeTheme +} from './lib/methods/helpers/theme'; import ChangePasscodeView from './views/ChangePasscodeView'; import ScreenLockedView from './views/ScreenLockedView'; @@ -98,6 +105,7 @@ export default class Root extends React.Component<{}, IState> { if (isTablet) { this.initTablet(); } + setNativeTheme(theme); } componentDidMount() {