-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
30 lines (27 loc) · 750 Bytes
/
App.js
File metadata and controls
30 lines (27 loc) · 750 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
import React, { Component } from 'react';
import { View, StatusBar } from 'react-native'
import { StackNavigator } from 'react-navigation'
import LinearGradient from 'react-native-linear-gradient'
//Screens
import MainScreen from './screens/MainScreen'
import SplashScreen from './screens/SplashScreen'
const RootNavigator = StackNavigator({
Splash: { screen: SplashScreen },
Main: { screen: MainScreen }
},
{ headerMode: 'none' },
{initialRoute: 'Splash'}
);
export default class App extends Component {
render() {
return (
<View style={{flex: 1}}>
<StatusBar
barStyle = "light-content"
backgroundColor="black"
hidden = {false}/>
<RootNavigator />
</View>
);
}
}