mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-02 09:18:38 +08:00
fix: call onTransitionEnd in descriptor on end of transition (#339)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user