From 6739b8c5ea009cd92c2bca1f24adae1bd96838d1 Mon Sep 17 00:00:00 2001 From: Wojciech Lewicki Date: Mon, 10 May 2021 14:31:23 +0200 Subject: [PATCH] feat: remove check for screens enabled in native stack (#922) Removed the check for enabling RNScreens for `native-stack` v4 and v5. It is not necessary since there is no point in using `native-stack` and not enabling the `react-native-screens` for its' components. --- src/createNativeStackNavigator.tsx | 1 + src/native-stack/navigators/createNativeStackNavigator.tsx | 7 ------- src/native-stack/views/NativeStackView.tsx | 3 ++- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/createNativeStackNavigator.tsx b/src/createNativeStackNavigator.tsx index cbfc9f4c07..3ff9e02a86 100644 --- a/src/createNativeStackNavigator.tsx +++ b/src/createNativeStackNavigator.tsx @@ -441,6 +441,7 @@ class StackView extends React.Component { return ( , StackRouterOptions, diff --git a/src/native-stack/views/NativeStackView.tsx b/src/native-stack/views/NativeStackView.tsx index d04fca8413..1949f24bde 100644 --- a/src/native-stack/views/NativeStackView.tsx +++ b/src/native-stack/views/NativeStackView.tsx @@ -65,7 +65,7 @@ const maybeRenderNestedStack = ( if (isHeaderInModal) { return ( - +