From 4d0d55497dc4d4f6ae84895d94b6173cf38b5003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Osadnik?= Date: Mon, 6 Jan 2020 19:26:59 +0100 Subject: [PATCH] fix: call onTransitionEnd in descriptor on end of transition (#339) --- scripts/stack.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/stack.patch b/scripts/stack.patch index 1306dbecb..bf077dc36 100644 --- a/scripts/stack.patch +++ b/scripts/stack.patch @@ -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() {