Skip to content

Commit

Permalink
Disable react-native-screens in navigators
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
fluiddot committed Jun 28, 2023
1 parent a756c3e commit e5838f4
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,18 @@ function BottomSheetNavigationContainer( {
>
{ main ? (
<NavigationContainer theme={ _theme }>
<Stack.Navigator screenOptions={ options }>
<Stack.Navigator
screenOptions={ options }
detachInactiveScreens={ false }
>
{ screens }
</Stack.Navigator>
</NavigationContainer>
) : (
<Stack.Navigator screenOptions={ options }>
<Stack.Navigator
screenOptions={ options }
detachInactiveScreens={ false }
>
{ screens }
</Stack.Navigator>
) }
Expand Down

0 comments on commit e5838f4

Please sign in to comment.