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

fix: call onTransitionEnd in descriptor on end of transition #339

Merged
merged 1 commit into from
Jan 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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