-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.js
56 lines (52 loc) · 1016 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import React, { Component } from 'react';
import { createStackNavigator, createBottomTabNavigator } from 'react-navigation';
import Index from './src/Screens/Index'
import Profile from './src/Screens/Profile'
import Bangumi from './src/Screens/Bangumi'
import SignIn from './src/Modals/SignIn'
import { View } from 'react-native';
const ScreensStack = createStackNavigator(
{
Index,
Bangumi,
Profile,
},
{
initialRouteName: 'Index',
navigationOptions: {
headerStyle: {
backgroundColor: '#f25d8e',
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
},
},
}
);
const RootTabs = createBottomTabNavigator(
{
Index,
Bangumi,
Profile
}
)
const RootStack = createStackNavigator(
{
ScreensStack,
SignIn,
},
{
mode: 'modal',
headerMode: 'none',
}
);
export default class extends Component {
render() {
return (
<RootStack>
<RootTabs/>
</RootStack>
);
}
}