forked from leanhtuan1994/react-native-template-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
38 lines (33 loc) · 905 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
32
33
34
35
36
37
38
import React from "react";
import { StatusBar } from "react-native";
import { enableScreens } from "react-native-screens";
import RNSplashScreen from "react-native-splash-screen";
import { SafeAreaProvider } from "react-native-safe-area-context";
import AppNavigator from "navigation/navigator/AppNavigator";
import "translations/initi18next";
import AppTheme, { Colors } from "styles";
//* required to improvement native screens
enableScreens();
//* check init intl
if (!global.Intl) {
require("intl");
require("intl/locale-data/jsonp/vi-VN.js");
}
const App = () => {
React.useEffect(() => {
RNSplashScreen.hide();
}, []);
return (
<SafeAreaProvider>
<StatusBar
barStyle="dark-content"
translucent
backgroundColor={Colors.White}
/>
<AppTheme>
<AppNavigator />
</AppTheme>
</SafeAreaProvider>
);
};
export default App;