-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
53 lines (41 loc) · 1.45 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import React from 'react';
import {
View,
StatusBar,
Dimensions, Text, TextInput
} from 'react-native';
import { SafeAreaView, SafeAreaProvider } from "react-native-safe-area-context";
import ScreenNavigation from './Navigation/ScreenNavigation';
import { Colors, ConstantsVar } from './constants';
import LoadingView from './Component/LoadingView';
import FlashMessage from 'react-native-flash-message';
const WIDTH = Dimensions.get("window").width;
const HEIGHT = Dimensions.get("window").height;
class App extends React.Component {
constructor(props) {
super(props);
if (Text.defaultProps == null) Text.defaultProps = {};
Text.defaultProps.allowFontScaling = false;
if (TextInput.defaultProps == null) TextInput.defaultProps = {};
TextInput.defaultProps.allowFontScaling = false;
}
componentDidMount(){
}
render() {
return (
<View style={{ flex: 1, backgroundColor: Colors.primary }}>
<SafeAreaView style={{ backgroundColor: Colors.primary,width: WIDTH, height: HEIGHT + StatusBar.currentHeight }}>
<View style={{ backgroundColor: "white", flex: 1 }}>
<View style={{ flex: 1 }}>
<StatusBar backgroundColor={Colors.primary} barStyle="light-content" />
<ScreenNavigation />
<LoadingView />
<FlashMessage position="top" />
</View>
</View>
</SafeAreaView>
</View>
)
}
}
export default App;