({
children,
isActive,
}: {
children: React.ReactNode;
isActive: boolean;
})
| 44 | } |
| 45 | |
| 46 | function 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 | |
| 64 | function MyScreen({ |
| 65 | title, |
nothing calls this directly
no outgoing calls
no test coverage detected