({ items, onPressItem })
| 2 | import { FlatList, StyleSheet, Text, TouchableOpacity } from 'react-native' |
| 3 | |
| 4 | export 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) }]} |
nothing calls this directly
no outgoing calls
no test coverage detected