forked from GuyAvraham/expo-auth0-example-2020
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
31 lines (27 loc) · 891 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import * as React from "react";
import { I18nManager } from 'react-native';
import AppNavigationStack from "./Components/navigation/AppNavigationStack";
import LoadAssets from "./Components/LoadAssets";
import { StateProvider } from "./Utils/State";
import { initialState, reducer } from "./Utils/Reducer";
import { NavigationContainer } from "@react-navigation/native";
import { Updates } from "expo";
import KBText from "./Components/KBText";
console.log('*** I18nManager.isRTL', I18nManager.isRTL);
I18nManager.forceRTL(false);
I18nManager.allowRTL(false);
if (I18nManager.isRTL){
Updates.reloadAsync();
}
function App() {
return (
<LoadAssets>
<StateProvider initialState={initialState} reducer={reducer}>
<NavigationContainer >
<AppNavigationStack />
</NavigationContainer>
</StateProvider>
</LoadAssets>
);
}
export default App;