-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathApp.tsx
29 lines (27 loc) · 813 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
import React, { ReactNode } from 'react';
import { NavigationContainer } from '@react-navigation/native';
import RootStack from './src/navigation/RootStack';
import { StatusBar } from 'react-native';
import { I18nextProvider } from 'react-i18next';
import i18n from './src/i18n';
import {
initialWindowMetrics,
SafeAreaProvider,
} from 'react-native-safe-area-context';
const App: () => ReactNode = () => {
return (
<SafeAreaProvider initialMetrics={initialWindowMetrics}>
<NavigationContainer>
<StatusBar
barStyle="light-content"
backgroundColor="#1E8449"
translucent={true}
/>
<I18nextProvider i18n={i18n}>
<RootStack />
</I18nextProvider>
</NavigationContainer>
</SafeAreaProvider>
);
};
export default App;