react-native-navigators
Advanced tools
Comparing version 0.3.0-19 to 0.3.0-20
@@ -30,5 +30,9 @@ import React, { PureComponent } from 'react'; | ||
this.handleTransitionComplete = (route) => { | ||
var _a; | ||
const { navigation } = this.props; | ||
if (navigation.state.isTransitioning) { | ||
navigation.dispatch(StackActions.completeTransition({ toChildKey: route.key })); | ||
const { state } = navigation; | ||
if (state.isTransitioning) { | ||
navigation.dispatch(StackActions.completeTransition({ | ||
toChildKey: (_a = state.routes[state.index]) === null || _a === void 0 ? void 0 : _a.key | ||
})); | ||
} | ||
@@ -35,0 +39,0 @@ }; |
@@ -11,3 +11,3 @@ import React, { memo, createContext, useContext } from 'react'; | ||
export default memo(function NativeScene(props) { | ||
var _a, _b; | ||
var _a, _b, _c; | ||
const { route, descriptor, closing, isSplitPrimary, mode, screenProps, onDidFocus, onDidBlur } = props; | ||
@@ -32,4 +32,3 @@ const { key } = route; | ||
} | ||
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 | ||
: NativeNavigatorTransitions.None} isSplitPrimary={isSplitPrimary} gestureEnabled={options.gestureEnabled !== false} translucent={options.translucent === true} transparent={options.transparent === true} style={options.cardStyle} statusBarStyle={options.statusBarStyle} statusBarHidden={options.statusBarHidden} closing={closing} onDidFocus={onDidFocus} onDidBlur={onDidBlur} route={route}> | ||
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) ? (_c = options.transition) !== null && _c !== void 0 ? _c : NativeNavigatorTransitions.Default : NativeNavigatorTransitions.None} isSplitPrimary={isSplitPrimary} gestureEnabled={options.gestureEnabled !== false} translucent={options.translucent === true} transparent={options.transparent === true} style={options.cardStyle} statusBarStyle={options.statusBarStyle} statusBarHidden={options.statusBarHidden} closing={closing} onDidFocus={onDidFocus} onDidBlur={onDidBlur} route={route}> | ||
<NativeStackSceneContainer> | ||
@@ -36,0 +35,0 @@ <NativeNavigationClosingStateContext.Provider value={closing || closingContextState}> |
{ | ||
"version": "0.3.0-19", | ||
"version": "0.3.0-20", | ||
"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
376767
3740