-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathConnectKeystoneStartScreen.tsx
More file actions
53 lines (51 loc) · 1.76 KB
/
ConnectKeystoneStartScreen.tsx
File metadata and controls
53 lines (51 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import Box from '@components/Box'
import ButtonPressable from '@components/ButtonPressable'
import SafeAreaBox from '@components/SafeAreaBox'
import Text from '@components/Text'
import { useNavigation } from '@react-navigation/native'
import React, { useCallback } from 'react'
import { t } from 'i18next'
import { Image } from 'react-native'
import { AddNewAccountNavigationProp } from '../home/addNewAccount/addNewAccountTypes'
const ConnectKeystoneStart = () => {
const navigation = useNavigation<AddNewAccountNavigationProp>()
const handleStart = useCallback(() => {
navigation.navigate('KeystoneNavigator')
}, [navigation])
return (
<SafeAreaBox
flex={1}
justifyContent="center"
marginHorizontal="l"
edges={['bottom']}
>
<Box flex={1} justifyContent="center">
<Box alignItems="center">
<Image
source={require('../../assets/images/connectKeystoneLogo.png')}
/>
<Text variant="h0" textAlign="center" marginVertical="l">
{t('keystone.connectKeystoneStart.title') as string}
</Text>
<Text variant="subtitle1" textAlign="center">
{t('keystone.connectKeystoneStart.subtitle') as string}
</Text>
</Box>
</Box>
<ButtonPressable
borderRadius="round"
onPress={handleStart}
backgroundColor="primaryText"
backgroundColorOpacityPressed={0.7}
backgroundColorDisabled="surfaceSecondary"
backgroundColorDisabledOpacity={0.5}
titleColorDisabled="black500"
titleColor="primary"
fontWeight="500"
title={t('keystone.connectKeystoneStart.scanQrCode')}
marginBottom="l"
/>
</SafeAreaBox>
)
}
export default React.memo(ConnectKeystoneStart)