|
1 | 1 | import { useRouter } from 'expo-router'; |
2 | 2 |
|
3 | 3 | import { Cover } from '@/components/cover'; |
| 4 | +import { translate } from '@/core'; |
4 | 5 | import { useIsFirstTime } from '@/core/hooks'; |
5 | 6 | import { Button, FocusAwareStatusBar, SafeAreaView, Text, View } from '@/ui'; |
| 7 | + |
6 | 8 | export default function Onboarding() { |
7 | 9 | const [, setIsFirstTime] = useIsFirstTime(); |
8 | 10 | const router = useRouter(); |
| 11 | + |
9 | 12 | return ( |
10 | | - <View className="flex h-full items-center justify-center"> |
| 13 | + <View className="flex h-full items-center justify-center"> |
11 | 14 | <FocusAwareStatusBar /> |
12 | 15 | <View className="w-full flex-1"> |
13 | 16 | <Cover /> |
14 | 17 | </View> |
15 | | - <View className="justify-end "> |
| 18 | + <View className="justify-end"> |
16 | 19 | <Text className="my-3 text-center text-5xl font-bold"> |
17 | | - React Native Template |
| 20 | + {translate('onboarding.title')} |
18 | 21 | </Text> |
19 | 22 | <Text className="mb-2 text-center text-lg text-gray-600"> |
20 | | - The right way to build your mobile app |
| 23 | + {translate('onboarding.subtitle')} |
21 | 24 | </Text> |
22 | 25 |
|
23 | 26 | <Text className="my-1 pt-6 text-left text-lg"> |
24 | | - 🚀 Production-ready{' '} |
| 27 | + {translate('onboarding.features.production_ready')} |
25 | 28 | </Text> |
26 | 29 | <Text className="my-1 text-left text-lg"> |
27 | | - 🥷 Developer experience + Productivity |
| 30 | + {translate('onboarding.features.developer_experience')} |
28 | 31 | </Text> |
29 | 32 | <Text className="my-1 text-left text-lg"> |
30 | | - 🧩 Minimal code and dependencies |
| 33 | + {translate('onboarding.features.minimal_code')} |
31 | 34 | </Text> |
32 | 35 | <Text className="my-1 text-left text-lg"> |
33 | | - 💪 well maintained third-party libraries |
| 36 | + {translate('onboarding.features.well_maintained_libraries')} |
34 | 37 | </Text> |
35 | 38 | </View> |
36 | 39 | <SafeAreaView className="mt-6"> |
37 | 40 | <Button |
38 | | - label="Let's Get Started" |
| 41 | + label={translate('onboarding.button_label')} |
39 | 42 | onPress={() => { |
40 | 43 | setIsFirstTime(false); |
41 | 44 | router.replace('/sign-in'); |
|
0 commit comments