-
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.
show nft list in choose nft for moment screen
- Loading branch information
1 parent
f6ddff1
commit b66aace
Showing
8 changed files
with
241 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Theme } from 'enevti-app/theme/default'; | ||
import React from 'react'; | ||
import { StyleProp, ViewStyle } from 'react-native'; | ||
import { RadioButton, useTheme } from 'react-native-paper'; | ||
|
||
interface AppRadioButtonProps { | ||
value: string; | ||
checked: string; | ||
onPress?: (value: string) => void; | ||
style?: StyleProp<ViewStyle>; | ||
} | ||
|
||
export default function AppRadioButton({ value, checked, onPress, style }: AppRadioButtonProps) { | ||
const theme = useTheme() as Theme; | ||
|
||
return ( | ||
<RadioButton.Android | ||
value={value} | ||
status={checked === value ? 'checked' : 'unchecked'} | ||
onPress={onPress ? () => onPress(value) : undefined} | ||
color={theme.colors.primary} | ||
style={style} | ||
/> | ||
); | ||
} |
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 was deleted.
Oops, something went wrong.
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