-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
35 lines (31 loc) · 895 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
24
25
26
27
28
29
30
31
32
33
34
35
/* eslint-disable prettier/prettier */
import React, { Component } from 'react';
import { View, Platform, StyleSheet, StatusBar } from 'react-native';
import SplashScreen from 'react-native-splash-screen'
import 'react-native-gesture-handler'
import AppNavigator from './navigation/AppNavigator';
import Colors from './constants/Colors';
import FlashMessage from "react-native-flash-message";
export default class App extends Component {
constructor(props) {
super(props);
}
componentDidMount() {
SplashScreen.hide();
}
render() {
return (
<View style={styles.container}>
{Platform.OS === 'ios' && <StatusBar barStyle="default" />}
<AppNavigator screenProps={{navigation : this.props.navigation}}/>
<FlashMessage position="top" />
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: Colors.PRIMARY_BG_COLOR,
},
});