import { createNavigator, StackRouter } from 'react-navigation';
import NativeNavigators from './NativeNavigators';
import { NativeNavigatorModes } from './types';
export function createNativeNavigator(routeConfigMap, stackConfig) {
    const router = StackRouter(routeConfigMap, stackConfig);
    return createNavigator(NativeNavigators, router, stackConfig);
}
export function createStackNavigator(routeConfigMap, stackConfig) {
    const router = StackRouter(routeConfigMap, stackConfig);
    return createNavigator(NativeNavigators, router, Object.assign(Object.assign({}, stackConfig), { mode: NativeNavigatorModes.Stack }));
}
export function createModalNavigator(routeConfigMap, stackConfig) {
    const router = StackRouter(routeConfigMap, stackConfig);
    return createNavigator(NativeNavigators, router, Object.assign(Object.assign({}, stackConfig), { mode: NativeNavigatorModes.Modal }));
}
export function createCardNavigator(routeConfigMap, stackConfig) {
    const router = StackRouter(routeConfigMap, stackConfig);
    return createNavigator(NativeNavigators, router, Object.assign(Object.assign({}, stackConfig), { mode: NativeNavigatorModes.Card }));
}
export function createSplitNavigator(routeConfigMap, stackConfig) {
    const router = StackRouter(routeConfigMap, stackConfig);
    return createNavigator(NativeNavigators, router, Object.assign(Object.assign({}, stackConfig), { mode: NativeNavigatorModes.Split }));
}
//# sourceMappingURL=createNavigators.js.map