fix: make sure disabling react-native-screens works

This commit is contained in:
Satyajit Sahoo
2021-05-09 06:38:45 +02:00
parent 4294318210
commit a369ba3645
6 changed files with 69 additions and 33 deletions

View File

@@ -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} />;