MCPcopy Create free account
hub / github.com/dabbott/react-native-express / List

Function List

examples/files/app/List.js:4–8  ·  view source on GitHub ↗
({ items, onPressItem })

Source from the content-addressed store, hash-verified

2import { FlatList, StyleSheet, Text, TouchableOpacity } from 'react-native'
3
4export default function List({ items, onPressItem }) {
5 return (
6 <FlatList
7 data={items}
8 keyExtractor={(item) => item.id}
9 renderItem={({ item, index }) => (
10 <TouchableOpacity
11 style={[styles.item, { backgroundColor: itemColor(index) }]}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected