refactor(mobile): default to web frame if isDev (#1586)

* refactor(mobile): default to web frame if isDev

* fix: ignore native challenges

* fix: use contentInset for padding
This commit is contained in:
Mo
2022-09-16 12:44:06 -05:00
committed by GitHub
parent 5a8752b95a
commit 0c3c98d7af
5 changed files with 26 additions and 2 deletions

View File

@@ -146,6 +146,19 @@ export const AppStackComponent = (props: ModalStackNavigationProp<'AppStack'>) =
return removeObserver
}, [application, navigation])
if (IsDev) {
return (
<AppStack.Navigator
screenOptions={() => ({
headerShown: false,
})}
initialRouteName={SCREEN_NOTES}
>
<AppStack.Screen name={SCREEN_NOTES} component={IsDev ? MobileWebAppContainer : Root} />
</AppStack.Navigator>
)
}
return (
<DrawerLayout
ref={drawerRef}