mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-26 09:14:22 +08:00
fix: make sure disabling react-native-screens works
This commit is contained in:
@@ -17,10 +17,7 @@ export const MaybeScreenContainer = ({
|
||||
children: React.ReactNode;
|
||||
}) => {
|
||||
if (Screens != null) {
|
||||
return (
|
||||
// @ts-ignore
|
||||
<Screens.ScreenContainer enabled={enabled} {...rest} />
|
||||
);
|
||||
return <Screens.ScreenContainer enabled={enabled} {...rest} />;
|
||||
}
|
||||
|
||||
return <View {...rest} />;
|
||||
|
||||
Reference in New Issue
Block a user