Skip to content

Commit

Permalink
fix:didFocus event can't be triggered due to component update and red…
Browse files Browse the repository at this point in the history
…ux middleware execution timing[react-navigation#53]
  • Loading branch information
xxyan0205 committed Aug 28, 2018
1 parent ac9fe59 commit b7299f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/reduxify-navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ function reduxifyNavigator<State: NavigationState, Props: RequiredProps<State>>(
}

componentDidUpdate() {
didUpdateCallback();
setTimeout(() => {
didUpdateCallback();
}, 0);
}

getCurrentNavigation = () => {
Expand Down

0 comments on commit b7299f5

Please sign in to comment.