forked from Yuneko-dev/lnreader-extended
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
23 lines (18 loc) · 808 Bytes
/
index.js
File metadata and controls
23 lines (18 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { getMMKVObject } from './src/utils/mmkv/mmkv';
import DebugLogService from './src/services/DebugLogService';
const appSettings = getMMKVObject('APP_SETTINGS');
if (appSettings?.verboseLogging) {
DebugLogService.install();
}
import 'react-native-gesture-handler';
import { registerRootComponent } from 'expo';
import { I18nManager } from 'react-native';
import { i18n } from './strings/translations';
const isRTL = i18n.locale.startsWith('ar') || i18n.locale.startsWith('he');
I18nManager.allowRTL(isRTL);
I18nManager.forceRTL(isRTL);
import App from './App';
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(App);