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

Function MyTab

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

Source from the content-addressed store, hash-verified

44}
45
46function MyTab({
47 children,
48 isActive,
49}: {
50 children: React.ReactNode;
51 isActive: boolean;
52}) {
53 return (
54 <View style={{ padding: 16, alignItems: "center" }}>
55 <Text
56 style={isActive ? { fontWeight: "bold" } : { fontWeight: "normal" }}
57 >
58 {children}
59 </Text>
60 </View>
61 );
62}
63
64function MyScreen({
65 title,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected