-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
33 lines (27 loc) · 713 Bytes
/
Copy pathApp.js
File metadata and controls
33 lines (27 loc) · 713 Bytes
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
import { useEffect } from 'react';
import { Platform, SafeAreaView, StatusBar, StyleSheet } from 'react-native';
import SplashScreen from "react-native-splash-screen";
import WebviewContainer from './components/WebviewContainer';
const App = () => {
useEffect(()=>{
setTimeout(()=>{
SplashScreen.hide();
}, 1000);
},[]);
return (
<>
<StatusBar barStyle="dark-content" />
<SafeAreaView style={styles.safeArea}>
<WebviewContainer/>
</SafeAreaView>
</>
);
};
const styles = StyleSheet.create({
safeArea: {
flex: 1,
backgroundColor: '#fff',
paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight : 0
},
});
export default App;