File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import { View , Text , TouchableOpacity } from "react-native" ;
3
- import { useNavigation } from "expo-router" ;
3
+ import { router } from "expo-router" ;
4
4
5
5
export function LoginSignupFooter ( ) {
6
6
const navigation = useNavigation ( ) ;
7
7
const handleLinkPress = ( link : string ) => {
8
8
if ( link === "privacy" ) {
9
9
// Navigate to Privacy Policy screen
10
- navigation . navigate ( "PrivacyPolicy" ) ; // Replace with your actual screen name
10
+ router . replace ( "PrivacyPolicy" ) ; // Replace with your actual screen name
11
11
} else if ( link === "terms" ) {
12
12
// Navigate to Terms of Service screen
13
- navigation . navigate ( "TermsOfService" ) ; // Replace with your actual screen name
13
+ router . replace ( "TermsOfService" ) ; // Replace with your actual screen name
14
14
}
15
15
}
16
16
return ( < View className = "mt-6 flex flex-row justify-center" >
@@ -22,4 +22,4 @@ export function LoginSignupFooter() {
22
22
< Text className = "text-text" > Warunki użytkowania</ Text >
23
23
</ TouchableOpacity >
24
24
</ View > ) ;
25
- }
25
+ }
You can’t perform that action at this time.
0 commit comments