FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: call onTransitionEnd in descriptor on end of transition (#339) · react-navigation/stack@4d0d554 · GitHub

This repository was archived by the owner on Feb 25, 2020. It is now read-only.
/ stack Public archive

Commit 4d0d554

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL