Merge pull request #27 from react-navigation/@ericvicenti/stack-mount-complete
Stack nav completion on mount
This commit is contained in:
commit
8951557608
|
@ -45,6 +45,17 @@ class StackView extends React.Component {
|
|||
);
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
const { navigation } = this.props;
|
||||
if (navigation.state.isTransitioning) {
|
||||
navigation.dispatch(
|
||||
StackActions.completeTransition({
|
||||
key: navigation.state.key,
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
_configureTransition = (transitionProps, prevTransitionProps) => {
|
||||
return {
|
||||
...TransitionConfigs.getTransitionConfig(
|
||||
|
|
Loading…
Reference in New Issue