MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / SelectorButton

Function SelectorButton

app/components/Base/SelectorButton.js:26–38  ·  view source on GitHub ↗
({ onPress, disabled, children, ...props })

Source from the content-addressed store, hash-verified

24 });
25
26function SelectorButton({ onPress, disabled, children, ...props }) {
27 const { colors } = useTheme();
28 const styles = createStyles(colors);
29
30 return (
31 <TouchableOpacity onPress={onPress} disabled={disabled} {...props}>
32 <View style={styles.container}>
33 <>{children}</>
34 <Icon name="caret-down" size={18} style={styles.caretDown} />
35 </View>
36 </TouchableOpacity>
37 );
38}
39
40SelectorButton.propTypes = {
41 children: PropTypes.node,

Callers

nothing calls this directly

Calls 2

useThemeFunction · 0.90
createStylesFunction · 0.70

Tested by

no test coverage detected