-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
23 lines (22 loc) · 655 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import React from 'react';
import Layout from './screen/Layout/Layout';
import Header from './components/Header';
import NavigationBar from './components/Navigation/NavigationBar';
import {StatusBar, Platform} from 'react-native';
import {useEffect} from 'react';
import SplashScreen from 'react-native-splash-screen';
const App = () => {
useEffect(() => {
SplashScreen.hide();
}, []);
return (
<Layout>
{(Platform.OS === 'ios' && <StatusBar barStyle="default" />) || (
<StatusBar backgroundColor="#f2f2f2" barStyle="dark-content" />
)}
<Header />
<NavigationBar />
</Layout>
);
};
export default App;