From e5838f473a8bb20c1df45db4a64c32ccbd7a693b Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Tue, 27 Jun 2023 17:41:49 +0200 Subject: [PATCH] Disable `react-native-screens` in navigators `react-native-screens` is meant to be used at root level to save memory when having inactive screens. This is not the case of the editor, as the stack navigators are used within the Bottom sheet component. As a side note, enabling `react-native-screens` here leads to the editor crashing. --- .../navigation-container.native.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/components/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js b/packages/components/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js index 69534681dfa05..5f26f459182b9 100644 --- a/packages/components/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +++ b/packages/components/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js @@ -152,12 +152,18 @@ function BottomSheetNavigationContainer( { > { main ? ( - + { screens } ) : ( - + { screens } ) }