MCPcopy Create free account
hub / github.com/ajsmth/rn-tools / MyTab

Function MyTab

example/src/navigation-examples/basic-tabs.tsx:35–51  ·  view source on GitHub ↗
({
  children,
  isActive,
}: {
  children: React.ReactNode;
  isActive: boolean;
})

Source from the content-addressed store, hash-verified

33}
34
35function MyTab({
36 children,
37 isActive,
38}: {
39 children: React.ReactNode;
40 isActive: boolean;
41}) {
42 return (
43 <View style={{ padding: 16, alignItems: "center" }}>
44 <Text
45 style={isActive ? { fontWeight: "bold" } : { fontWeight: "normal" }}
46 >
47 {children}
48 </Text>
49 </View>
50 );
51}
52
53function MyScreen({
54 title,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected