1
- import { ScrollView , View } from 'react-native' ;
1
+ import { Pressable , ScrollView , View } from 'react-native' ;
2
2
import * as WebBrowser from 'expo-web-browser' ;
3
3
4
4
import styled , { css } from '@emotion/native' ;
5
5
6
- import { Typography , useDooboo } from 'dooboo-ui' ;
7
6
import { Stack , useRouter } from 'expo-router' ;
8
7
9
8
import { IMG_CROSSPLATFORMS , IC_ICON } from '../../src/icons' ;
@@ -12,6 +11,7 @@ import {useSafeAreaInsets} from 'react-native-safe-area-context';
12
11
import ButtonSocialSignIn from '../../src/components/uis/ButtonSocialSignIn' ;
13
12
import { useWarmUpBrowser } from '../../src/hooks/useWarmUpBrowser' ;
14
13
import { Image } from 'expo-image' ;
14
+ import { Typography , useCPK } from 'cpk-ui' ;
15
15
16
16
WebBrowser . maybeCompleteAuthSession ( ) ;
17
17
@@ -45,7 +45,7 @@ WebBrowser.maybeCompleteAuthSession();
45
45
export default function Intro ( ) : JSX . Element {
46
46
useWarmUpBrowser ( ) ;
47
47
48
- const { theme} = useDooboo ( ) ;
48
+ const { theme} = useCPK ( ) ;
49
49
const { push} = useRouter ( ) ;
50
50
const { top, bottom, left, right} = useSafeAreaInsets ( ) ;
51
51
@@ -129,23 +129,27 @@ export default function Intro(): JSX.Element {
129
129
i % 2 === 0 ? (
130
130
str
131
131
) : (
132
- < Typography . Body4
133
- key = { str }
132
+ < Pressable
133
+ hitSlop = { 8 }
134
134
onPress = { ( ) => {
135
135
if ( str === t ( 'signIn.privacyPolicy' ) ) {
136
136
return push ( '/privacyandpolicy' ) ;
137
137
}
138
138
139
139
push ( '/termsofservice' ) ;
140
140
} }
141
- style = { css `
142
- text-decoration-line : underline;
143
- color : ${ theme . text . basic } ;
144
- text-decoration-line : underline;
145
- ` }
146
141
>
147
- { str }
148
- </ Typography . Body4 >
142
+ < Typography . Body4
143
+ key = { str }
144
+ style = { css `
145
+ text-decoration-line : underline;
146
+ color : ${ theme . text . basic } ;
147
+ text-decoration-line : underline;
148
+ ` }
149
+ >
150
+ { str }
151
+ </ Typography . Body4 >
152
+ </ Pressable >
149
153
) ,
150
154
) }
151
155
</ Typography . Body4 >
0 commit comments