MCPcopy
hub / github.com/BlueWallet/BlueWallet / Tabs

Function Tabs

components/Tabs.tsx:40–56  ·  view source on GitHub ↗
({ active, onSwitch, tabs, isIpad = false })

Source from the content-addressed store, hash-verified

38}
39
40export const Tabs: React.FC<TabsProps> = ({ active, onSwitch, tabs, isIpad = false }) => {
41 const { colors } = useTheme();
42 return (
43 <View style={[tabsStyles.root, isIpad && tabsStyles.marginBottom]}>
44 {tabs.map((Tab, i) => (
45 <TouchableOpacity
46 key={i}
47 accessibilityRole="button"
48 onPress={() => onSwitch(i)}
49 style={[tabsStyles.tabRoot, active === i && { ...tabsStyles.activeTabRoot, borderColor: colors.buttonAlternativeTextColor }]}
50 >
51 <Tab active={active === i} />
52 </TouchableOpacity>
53 ))}
54 </View>
55 );
56};

Callers

nothing calls this directly

Calls 1

useThemeFunction · 0.90

Tested by

no test coverage detected