-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mobile): add getting started screen
feat(mobile): add terms and privacy policy links to getting started
- Loading branch information
Showing
33 changed files
with
374 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from 'react' | ||
import { GetStarted } from '@/src/features/GetStarted' | ||
|
||
function getStartedScreen() { | ||
return <GetStarted /> | ||
} | ||
|
||
export default getStartedScreen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
import { Onboarding } from '@/src/features/Onboarding' | ||
import React from 'react' | ||
import { View } from 'tamagui' | ||
import { ActivityIndicator } from 'react-native' | ||
|
||
function OnboardingPage() { | ||
return <Onboarding /> | ||
/** | ||
* This is a dummy screen. Expo automatically renders it when it constructs the app. | ||
* If we don't have an index file it will pick whatever it sees fit. This is a placeholder. | ||
* | ||
* The actual navigation to either onboarding flow or a safe happens inside the NavigationGuardHOC | ||
* | ||
* @constructor | ||
*/ | ||
function IndexScreen() { | ||
return ( | ||
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> | ||
<ActivityIndicator /> | ||
</View> | ||
) | ||
} | ||
|
||
export default OnboardingPage | ||
export default IndexScreen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Onboarding } from '@/src/features/Onboarding' | ||
import React from 'react' | ||
|
||
function OnboardingPage() { | ||
return <Onboarding /> | ||
} | ||
|
||
export default OnboardingPage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import React from 'react' | ||
import { Link, useRouter } from 'expo-router' | ||
import { View, Text, YStack } from 'tamagui' | ||
import { SafeButton } from '@/src/components/SafeButton' | ||
import { SafeFontIcon } from '@/src/components/SafeFontIcon' | ||
import { useSafeAreaInsets } from 'react-native-safe-area-context' | ||
import { BlurView } from 'expo-blur' | ||
|
||
export const GetStarted = () => { | ||
const router = useRouter() | ||
const insets = useSafeAreaInsets() | ||
return ( | ||
<YStack justifyContent={'flex-end'} flex={1}> | ||
<BlurView intensity={100} style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}> | ||
<View | ||
flex={1} | ||
onPress={() => { | ||
router.back() | ||
}} | ||
></View> | ||
</BlurView> | ||
<YStack | ||
gap={'$3'} | ||
paddingHorizontal={'$4'} | ||
backgroundColor={'$background'} | ||
paddingBottom={insets.bottom} | ||
paddingTop={'$5'} | ||
borderTopLeftRadius={'$9'} | ||
borderTopRightRadius={'$9'} | ||
> | ||
<Text | ||
fontSize={'$6'} | ||
fontWeight={'600'} | ||
textAlign={'center'} | ||
marginBottom={'$2'} | ||
paddingHorizontal={'$10'} | ||
lineHeight={'$9'} | ||
> | ||
How would you like to continue? | ||
</Text> | ||
<SafeButton outlined icon={<SafeFontIcon name={'add-owner'} />}> | ||
Join Account | ||
</SafeButton> | ||
<Link href={'/(import-accounts)'} asChild> | ||
<SafeButton outlined icon={<SafeFontIcon name={'plus-outlined'} />}> | ||
Add account | ||
</SafeButton> | ||
</Link> | ||
<Text paddingHorizontal={'$10'} marginTop={'$2'} textAlign={'center'} fontSize={'$3'} color={'$colorSecondary'}> | ||
By continuing, you agree to our{' '} | ||
<Link href={'https://app.safe.global/terms'} target={'_blank'}> | ||
<Text textDecorationLine={'underline'} color={'$colorSecondary'}> | ||
User Terms | ||
</Text> | ||
</Link>{' '} | ||
and{' '} | ||
<Link href={'https://app.safe.global/privacy'} target={'_blank'} asChild> | ||
<Text textDecorationLine={'underline'} color={'$colorSecondary'}> | ||
Privacy Policy | ||
</Text> | ||
</Link> | ||
. | ||
</Text> | ||
</YStack> | ||
</YStack> | ||
) | ||
} |
Oops, something went wrong.