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

Commit 4d0d554

Browse files
authored
fix: call onTransitionEnd in descriptor on end of transition (#339)
1 parent 05a485f commit 4d0d554

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/stack.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,8 @@ diff -Naur node_modules/@react-navigation/stack/src/views/Stack/StackView.tsx sr
577577
+ const descriptor = descriptors[route.key];
578578
+
579579
+ descriptor &&
580-
+ descriptor.options.onTransitionStart &&
581-
+ descriptor.options.onTransitionStart({ closing });
580+
+ descriptor.options.onTransitionEnd &&
581+
+ descriptor.options.onTransitionEnd({ closing });
582582
+ };
583583

584584
render() {

0 commit comments

Comments
 (0)