From 59831f52dd626daeca568f6179bb8a53fcdcb30b Mon Sep 17 00:00:00 2001 From: osdnk Date: Mon, 6 Jan 2020 17:28:13 -0500 Subject: [PATCH] fix: add missing descriptor obtaining --- scripts/stack.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/stack.patch b/scripts/stack.patch index bf077dc36..21d5f4b06 100644 --- a/scripts/stack.patch +++ b/scripts/stack.patch @@ -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 && @@ -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 &&