From ef8e4e23f4d5e4e5f10e1b13a663116451c94103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Osadnik?= Date: Mon, 6 Jan 2020 23:30:36 +0100 Subject: [PATCH] fix: add missing descriptor obtaining (#340) --- packages/stack/scripts/stack.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/stack/scripts/stack.patch b/packages/stack/scripts/stack.patch index bf077dc3..21d5f4b0 100644 --- a/packages/stack/scripts/stack.patch +++ b/packages/stack/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 &&