({ data }: { data: object | null | undefined })
| 2 | import { Text } from 'react-native'; |
| 3 | |
| 4 | export function DataView({ data }: { data: object | null | undefined }) { |
| 5 | return ( |
| 6 | <Text style={{ fontSize: 16, lineHeight: 24, color: '#292929' }}> |
| 7 | {data == null |
| 8 | ? 'null' |
| 9 | : Object.entries(data) |
| 10 | .map(([key, value]) => `${key}: ${value}`) |
| 11 | .join('\n')} |
| 12 | </Text> |
| 13 | ); |
| 14 | } |
nothing calls this directly
no outgoing calls
no test coverage detected