react-native-navigators
Advanced tools
Comparing version 0.3.0-2 to 0.3.0-3
@@ -47,3 +47,2 @@ import React, { PureComponent } from 'react'; | ||
static getDerivedStateFromProps(props, state) { | ||
var _a; | ||
const { navigation, screenProps } = props; | ||
@@ -64,3 +63,3 @@ if (navigation.state.routes === state.propRoutes && | ||
const nextFocusedRoute = routes[routes.length - 1]; | ||
if (closingRouteKey === ((_a = previousFocusedRoute) === null || _a === void 0 ? void 0 : _a.key)) { | ||
if (closingRouteKey === (previousFocusedRoute === null || previousFocusedRoute === void 0 ? void 0 : previousFocusedRoute.key)) { | ||
// During a closing transition, just update the routes state. | ||
@@ -67,0 +66,0 @@ routes = [...routes, previousFocusedRoute]; |
{ | ||
"version": "0.3.0-2", | ||
"version": "0.3.0-3", | ||
"name": "react-native-navigators", | ||
@@ -4,0 +4,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
333114
202
3164