Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Commit

Permalink
fix: call onTransitionEnd in descriptor on end of transition (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
osdnk authored Jan 6, 2020
1 parent 05a485f commit 4d0d554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/stack.patch
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@ diff -Naur node_modules/@react-navigation/stack/src/views/Stack/StackView.tsx sr
+ const descriptor = descriptors[route.key];
+
+ descriptor &&
+ descriptor.options.onTransitionStart &&
+ descriptor.options.onTransitionStart({ closing });
+ descriptor.options.onTransitionEnd &&
+ descriptor.options.onTransitionEnd({ closing });
+ };

render() {
Expand Down

0 comments on commit 4d0d554

Please sign in to comment.