Try router.dismissAll() for navigation
This commit is contained in:
parent
5489b16a13
commit
c2c6a52b31
@ -285,14 +285,7 @@ export default function EquipmentStatusScreen() {
|
||||
styles.backToLovedOnesButton,
|
||||
pressed && { opacity: 0.7 }
|
||||
]}
|
||||
onPress={() => {
|
||||
Alert.alert('Debug', 'Button pressed! Navigating...', [
|
||||
{
|
||||
text: 'OK',
|
||||
onPress: () => router.push('/(tabs)/beneficiaries')
|
||||
}
|
||||
]);
|
||||
}}
|
||||
onPress={() => router.dismissAll()}
|
||||
>
|
||||
<Ionicons name="people" size={20} color={AppColors.white} />
|
||||
<Text style={styles.backToLovedOnesText}>Back to My Loved Ones</Text>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user