MCPcopy Create free account
hub / github.com/AppAndFlow/react-native-safe-area-context / DataView

Function DataView

example/src/components/DataView.tsx:4–14  ·  view source on GitHub ↗
({ data }: { data: object | null | undefined })

Source from the content-addressed store, hash-verified

2import { Text } from 'react-native';
3
4export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected