|
@@ -7,7 +7,6 @@ import {Provider as PaperProvider} from 'react-native-paper';
|
7
|
7
|
import {setSafeBounceHeight} from 'react-navigation-collapsible';
|
8
|
8
|
import SplashScreen from 'react-native-splash-screen';
|
9
|
9
|
import {OverflowMenuProvider} from 'react-navigation-header-buttons';
|
10
|
|
-import LocaleManager from './src/managers/LocaleManager';
|
11
|
10
|
import AsyncStorageManager from './src/managers/AsyncStorageManager';
|
12
|
11
|
import CustomIntroSlider from './src/components/Overrides/CustomIntroSlider';
|
13
|
12
|
import type {CustomThemeType} from './src/managers/ThemeManager';
|
|
@@ -19,6 +18,7 @@ import ConnectionManager from './src/managers/ConnectionManager';
|
19
|
18
|
import type {ParsedUrlDataType} from './src/utils/URLHandler';
|
20
|
19
|
import URLHandler from './src/utils/URLHandler';
|
21
|
20
|
import {setupStatusBar} from './src/utils/Utils';
|
|
21
|
+import initLocales from './src/utils/Locales';
|
22
|
22
|
|
23
|
23
|
// Native optimizations https://reactnavigation.org/docs/react-native-screens
|
24
|
24
|
// Crashes app when navigating away from webview on android 9+
|
|
@@ -56,7 +56,7 @@ export default class App extends React.Component<null, StateType> {
|
56
|
56
|
showAprilFools: false,
|
57
|
57
|
currentTheme: null,
|
58
|
58
|
};
|
59
|
|
- LocaleManager.initTranslations();
|
|
59
|
+ initLocales();
|
60
|
60
|
this.navigatorRef = React.createRef();
|
61
|
61
|
this.defaultHomeRoute = null;
|
62
|
62
|
this.defaultHomeData = {};
|