({
children,
isActive,
}: {
children: React.ReactNode;
isActive: boolean;
})
| 33 | } |
| 34 | |
| 35 | function 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 | |
| 53 | function MyScreen({ |
| 54 | title, |
nothing calls this directly
no outgoing calls
no test coverage detected