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

This commit is contained in:
Michał Osadnik
2020-01-06 19:26:59 +01:00
parent 1ea9ced816
commit c014968457

View File

@@ -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() {