fix navigation issues with AddObs screens

This commit is contained in:
Abbey Campbell
2025-12-11 16:13:54 -08:00
parent fec130f761
commit b7c6c5b5d4
2 changed files with 8 additions and 3 deletions

View File

@@ -231,7 +231,12 @@ const AICamera = ( {
const handleClose = async ( ) => {
await deleteSentinelFile( sentinelFileName );
navigation.goBack( );
navigation.navigate( "TabNavigator", {
screen: "ObservationsTab",
params: {
screen: "ObsList"
}
} );
};
return (

View File

@@ -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