2019-06-29 13:37:21 +02:00
|
|
|
// @flow
|
|
|
|
|
2020-02-03 12:17:59 +01:00
|
|
|
import {createAppContainer} from 'react-navigation';
|
|
|
|
import {createDrawerNavigatorWithInitialRoute} from './DrawerNavigator';
|
2019-06-25 22:20:24 +02:00
|
|
|
|
2019-11-02 15:44:19 +01:00
|
|
|
|
2019-06-29 15:43:57 +02:00
|
|
|
/**
|
|
|
|
* Create a stack navigator using the drawer to handle navigation between screens
|
|
|
|
*/
|
2019-09-12 23:02:28 +02:00
|
|
|
function createAppContainerWithInitialRoute(initialRoute: string) {
|
2020-02-03 12:17:59 +01:00
|
|
|
return createAppContainer(createDrawerNavigatorWithInitialRoute(initialRoute));
|
2019-09-12 23:02:28 +02:00
|
|
|
}
|
2020-01-31 16:51:43 +01:00
|
|
|
|
2019-09-12 23:02:28 +02:00
|
|
|
export {createAppContainerWithInitialRoute};
|