fix: enable screens only on supported platforms (#9494)

This commit is contained in:
Wojciech Lewicki
2021-05-09 06:42:56 +02:00
committed by GitHub
parent 7809bc0650
commit 8da4c58065
3 changed files with 10 additions and 6 deletions

View File

@@ -76,7 +76,9 @@ function DrawerViewBase({
drawerContent = (props: DrawerContentComponentProps) => (
<DrawerContent {...props} />
),
detachInactiveScreens = true,
detachInactiveScreens = Platform.OS === 'web' ||
Platform.OS === 'android' ||
Platform.OS === 'ios',
// Running in chrome debugger
// @ts-expect-error
useLegacyImplementation = !global.nativeCallSyncHook ||