e4cf64a112
* refactor: Restructure Application Architecture * feat: Support Batched Downloads And EPUB Imports * feat: Add Download Checkpoint Recovery
22 lines
762 B
JavaScript
22 lines
762 B
JavaScript
import 'react-native-gesture-handler';
|
|
import { registerRootComponent } from 'expo';
|
|
import { AppRegistry, I18nManager } from 'react-native';
|
|
import { i18n } from './strings/translations';
|
|
import { runHeadlessBackgroundTask } from './src/services/backgroundTasks';
|
|
|
|
AppRegistry.registerHeadlessTask(
|
|
'LNReaderBackgroundTask',
|
|
() => runHeadlessBackgroundTask,
|
|
);
|
|
|
|
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);
|