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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user