react-native-navigators
Advanced tools
Comparing version 0.3.0-24 to 0.3.0-25
@@ -1,4 +0,5 @@ | ||
import { createNavigator, StackRouter } from 'react-navigation'; | ||
import { createNavigator } from 'react-navigation'; | ||
import NativeNavigators from './NativeNavigators'; | ||
import SplitRouter from './SplitRouter'; | ||
import StackRouter from './StackRouter'; | ||
import { NativeNavigatorModes } from './types'; | ||
@@ -5,0 +6,0 @@ export function createNativeNavigator(routeConfigMap, stackConfig) { |
@@ -7,1 +7,2 @@ export * from './createNavigators'; | ||
export * from './types'; | ||
export * from './overrides'; |
@@ -7,2 +7,3 @@ export * from './createNavigators'; | ||
export * from './types'; | ||
export * from './overrides'; | ||
//# sourceMappingURL=index.js.map |
import React, { PureComponent } from 'react'; | ||
import { StackActions, NavigationActions } from 'react-navigation'; | ||
import { StackActions } from './StackActions'; | ||
import { NativeNavigatorModes } from './types'; | ||
@@ -50,7 +50,3 @@ import NativeStackNavigator from './NativeStackNavigator'; | ||
}); | ||
navigation.dispatch({ | ||
type: NavigationActions.BACK, | ||
key: route.key, | ||
immediate: true | ||
}); | ||
navigation.dispatch(StackActions.remove({ key: route.key })); | ||
}; | ||
@@ -57,0 +53,0 @@ } |
@@ -1,2 +0,3 @@ | ||
import { StackRouter, NavigationActions } from 'react-navigation'; | ||
import { NavigationActions } from 'react-navigation'; | ||
import StackRouter from './StackRouter'; | ||
export default function SplitRouter(routeConfigs, config) { | ||
@@ -3,0 +4,0 @@ const stackRouter = StackRouter(routeConfigs, config); |
{ | ||
"version": "0.3.0-24", | ||
"version": "0.3.0-25", | ||
"name": "react-native-navigators", | ||
@@ -52,3 +52,3 @@ "repository": { | ||
"prettier": "^1.18.2", | ||
"react-navigation": "^4.4.3", | ||
"react-navigation": "^4.4.4", | ||
"typescript": "^3.7.3" | ||
@@ -55,0 +55,0 @@ }, |
@@ -7,1 +7,2 @@ export * from './createNavigators'; | ||
export * from './types'; | ||
export * from './overrides'; |
import { | ||
StackRouter, | ||
NavigationRouter, | ||
@@ -11,2 +10,3 @@ NavigationRouteConfigMap, | ||
import StackRouter from './StackRouter'; | ||
import { NativeNavigationRouterConfig } from './types'; | ||
@@ -23,4 +23,4 @@ | ||
action: NavigationAction, | ||
state: NavigationState | ||
) => { | ||
state: NavigationState | undefined | ||
): NavigationState | null => { | ||
if (state) { | ||
@@ -27,0 +27,0 @@ if (action.type === NavigationActions.NAVIGATE) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
393651
242
4019