-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApp.js
More file actions
35 lines (30 loc) · 780 Bytes
/
App.js
File metadata and controls
35 lines (30 loc) · 780 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
34
35
import React, {Component} from 'react'
import { StatusBar, View } from 'react-native'
import { Provider as PaperProvider } from 'react-native-paper'
import { createStackNavigator, createAppContainer } from "react-navigation"
// components
import Home from './src/components/Home'
import Settings from './src/components/Settings'
export default class App extends Component {
render() {
return <View style={{flex: 1}}>
<StatusBar
backgroundColor="#6200ee"
barStyle="light-content"
/>
<PaperProvider>
<AppContainer />
</PaperProvider>
</View>
}
}
const AppNavigator = createStackNavigator({
Home,
Settings
}, {
headerMode: 'none',
navigationOptions: {
headerVisible: false
}
})
const AppContainer = createAppContainer(AppNavigator)