-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
28 lines (27 loc) · 823 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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* Generated with the TypeScript template
* https://github.com/react-native-community/react-native-template-typescript
*
* @format
*/
import 'react-native-gesture-handler';
import React, {useEffect} from 'react';
import {NavigationContainer} from '@react-navigation/native';
import AppRoute from './src/routes/app.route';
import {StatusBar} from 'react-native';
import {setRootViewBackgroundColor} from '@pnthach95/react-native-root-view-background';
import {colors} from './src/styles/colors';
export default function App() {
useEffect(() => {
setRootViewBackgroundColor(colors.primary);
}, []);
return (
<NavigationContainer>
<StatusBar barStyle="light-content" />
<AppRoute />
</NavigationContainer>
);
}