-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from xmtp-labs/ar/onboarding-cleanup
Onboarding Updates: Update Onboard wallet
- Loading branch information
Showing
15 changed files
with
417 additions
and
152 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,44 @@ | ||
import {HStack} from 'native-base'; | ||
import React, {FC} from 'react'; | ||
import {Pressable} from 'react-native'; | ||
import {Icon, IconName} from './common/Icon'; | ||
import {Text} from './common/Text'; | ||
|
||
interface WalletOptionButtonProps { | ||
onPress: () => void; | ||
title: string; | ||
icon: IconName; | ||
} | ||
|
||
export const WalletOptionButton: FC<WalletOptionButtonProps> = ({ | ||
onPress, | ||
title, | ||
icon, | ||
}) => { | ||
return ( | ||
<Pressable onPress={onPress}> | ||
<HStack | ||
w="100%" | ||
justifyContent={'space-between'} | ||
borderRadius={'16px'} | ||
borderColor={'#E5E5E5'} | ||
borderWidth={1} | ||
alignItems={'center'} | ||
marginY={'4px'} | ||
padding={'16px'}> | ||
<HStack alignItems={'center'}> | ||
<Icon name={icon} size={33} /> | ||
<Text typography="text-title/bold" paddingLeft={'9px'}> | ||
{title} | ||
</Text> | ||
</HStack> | ||
<Icon | ||
style={{justifyContent: 'flex-end', alignSelf: 'center'}} | ||
name="arrow-right-circle-thick" | ||
type="mini" | ||
size={24} | ||
/> | ||
</HStack> | ||
</Pressable> | ||
); | ||
}; |
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,6 +1,18 @@ | ||
import {IButtonProps, Button as NativeButton} from 'native-base'; | ||
import React from 'react'; | ||
import {Platform} from 'react-native'; | ||
|
||
export const Button = (props: IButtonProps) => { | ||
return <NativeButton borderRadius={'120px'} {...props} />; | ||
// Bug related to Android and icons rendered by native-base | ||
const rightIcon = Platform.OS === 'ios' ? props.rightIcon : undefined; | ||
const leftIcon = Platform.OS === 'ios' ? props.leftIcon : undefined; | ||
|
||
return ( | ||
<NativeButton | ||
borderRadius={'120px'} | ||
{...props} | ||
rightIcon={rightIcon} | ||
leftIcon={leftIcon} | ||
/> | ||
); | ||
}; |
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
export const AppConfig = { | ||
IMAGE_UPLOAD_ENABLED: false, | ||
LENS_ENABLED: false, | ||
GROUPS_ENABLED: true, | ||
}; |
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
Oops, something went wrong.