mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
fix navigation issues with AddObs screens
This commit is contained in:
@@ -231,7 +231,12 @@ const AICamera = ( {
|
||||
|
||||
const handleClose = async ( ) => {
|
||||
await deleteSentinelFile( sentinelFileName );
|
||||
navigation.goBack( );
|
||||
navigation.navigate( "TabNavigator", {
|
||||
screen: "ObservationsTab",
|
||||
params: {
|
||||
screen: "ObsList"
|
||||
}
|
||||
} );
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -6,7 +6,7 @@ import * as React from "react";
|
||||
import { useOnboardingShown } from "sharedHelpers/installData";
|
||||
|
||||
import BottomTabNavigator from "./BottomTabNavigator";
|
||||
import { hideHeader } from "./navigationOptions";
|
||||
import { hideHeader, preventSwipeToGoBack } from "./navigationOptions";
|
||||
|
||||
const Stack = createNativeStackNavigator( );
|
||||
|
||||
@@ -18,7 +18,7 @@ const RootStackNavigator = ( ) => {
|
||||
const [onboardingShown] = useOnboardingShown( );
|
||||
|
||||
return (
|
||||
<Stack.Navigator screenOptions={{ ...hideHeader }}>
|
||||
<Stack.Navigator screenOptions={{ ...hideHeader, ...preventSwipeToGoBack, animation: "none" }}>
|
||||
{!onboardingShown
|
||||
? (
|
||||
<Stack.Screen
|
||||
|
||||
Reference in New Issue
Block a user