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

Commit

Permalink
fix: add missing descriptor obtaining (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
osdnk authored Jan 6, 2020
1 parent d9b7ff8 commit 82720af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/stack.patch
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ diff -Naur node_modules/@react-navigation/stack/src/views/Stack/StackView.tsx sr
- });
+ ) => {
+ const { descriptors } = this.props;
+ const descriptor = descriptors[route.key];
+ const descriptor = descriptors[route.key] || this.state.descriptors[route.key];
+
+ descriptor &&
+ descriptor.options.onTransitionStart &&
Expand All @@ -574,7 +574,7 @@ diff -Naur node_modules/@react-navigation/stack/src/views/Stack/StackView.tsx sr
- });
+ ) => {
+ const { descriptors } = this.props;
+ const descriptor = descriptors[route.key];
+ const descriptor = descriptors[route.key] || this.state.descriptors[route.key];
+
+ descriptor &&
+ descriptor.options.onTransitionEnd &&
Expand Down

0 comments on commit 82720af

Please sign in to comment.