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

Commit 82720af

Browse files
authored
fix: add missing descriptor obtaining (#340)
1 parent d9b7ff8 commit 82720af

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
@@ -556,7 +556,7 @@ diff -Naur node_modules/@react-navigation/stack/src/views/Stack/StackView.tsx sr
556556
- });
557557
+ ) => {
558558
+ const { descriptors } = this.props;
559-
+ const descriptor = descriptors[route.key];
559+
+ const descriptor = descriptors[route.key] || this.state.descriptors[route.key];
560560
+
561561
+ descriptor &&
562562
+ descriptor.options.onTransitionStart &&
@@ -574,7 +574,7 @@ diff -Naur node_modules/@react-navigation/stack/src/views/Stack/StackView.tsx sr
574574
- });
575575
+ ) => {
576576
+ const { descriptors } = this.props;
577-
+ const descriptor = descriptors[route.key];
577+
+ const descriptor = descriptors[route.key] || this.state.descriptors[route.key];
578578
+
579579
+ descriptor &&
580580
+ descriptor.options.onTransitionEnd &&

0 commit comments

Comments
 (0)