forked from calebnance/expo-spotify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStack.js
More file actions
34 lines (27 loc) · 780 Bytes
/
Copy pathStack.js
File metadata and controls
34 lines (27 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
import { createAppContainer, createStackNavigator } from 'react-navigation';
// grab navigation
import TabNavigation from './TabNavigation';
// grab screens
import ModalMusicPlayer from '../screens/ModalMusicPlayer';
// grab modal routes (dynamic transitions)
import ModalRoutes from './ModalRoutes';
const StackNavigator = createStackNavigator(
{
TabNavigation,
// Modals
// /////////////////////////////////////////////////////////////////////////
ModalMusicPlayer: {
screen: ModalMusicPlayer,
navigationOptions: {
gesturesEnabled: false
}
}
},
{
headerMode: 'none',
initialRouteName: 'TabNavigation',
transitionConfig: ModalRoutes
}
);
const App = createAppContainer(StackNavigator);
export default App;