react-native-navigators
Advanced tools
Comparing version 0.3.0-8 to 0.3.0-9
@@ -47,2 +47,3 @@ import React, { PureComponent } from 'react'; | ||
static getDerivedStateFromProps(props, state) { | ||
var _a; | ||
const { navigation, screenProps } = props; | ||
@@ -63,3 +64,3 @@ if (navigation.state.routes === state.propRoutes && | ||
const nextFocusedRoute = routes[routes.length - 1]; | ||
if (closingRouteKey === (previousFocusedRoute === null || previousFocusedRoute === void 0 ? void 0 : previousFocusedRoute.key)) { | ||
if (closingRouteKey === ((_a = previousFocusedRoute) === null || _a === void 0 ? void 0 : _a.key)) { | ||
// During a closing transition, just update the routes state. | ||
@@ -66,0 +67,0 @@ routes = [...routes, previousFocusedRoute]; |
@@ -20,3 +20,3 @@ import React, { memo, createContext } from 'react'; | ||
if (mode === NativeNavigatorModes.Stack) { | ||
headerMode = headerMode !== null && headerMode !== void 0 ? headerMode : NativeNavigatorHeaderModes.Auto; | ||
headerMode = (headerMode !== null && headerMode !== void 0 ? headerMode : NativeNavigatorHeaderModes.Auto); | ||
} | ||
@@ -27,3 +27,3 @@ else if (mode === NativeNavigatorModes.Split) { | ||
else { | ||
headerMode = headerMode !== null && headerMode !== void 0 ? headerMode : NativeNavigatorHeaderModes.None; | ||
headerMode = (headerMode !== null && headerMode !== void 0 ? headerMode : NativeNavigatorHeaderModes.None); | ||
} | ||
@@ -30,0 +30,0 @@ return (<NativeStackScene key={key} transition={((_b = (_a = navigation.dangerouslyGetParent()) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.isTransitioning) ? options.transition || NativeNavigatorTransitions.Default |
{ | ||
"version": "0.3.0-8", | ||
"version": "0.3.0-9", | ||
"name": "react-native-navigators", | ||
@@ -4,0 +4,0 @@ "repository": { |
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2246758
386
3365