MCPcopy Create free account
hub / github.com/callstack/react-native-paper / Results

Function Results

example/src/Examples/TeamDetails.tsx:138–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136};
137
138const Results = () => {
139 const renderItem = ({ item }: { item: Item }) => {
140 return (
141 <View style={styles.listRow}>
142 <IconButton
143 onPress={() => {}}
144 selected={item.favourite}
145 icon={item.favourite ? 'star' : 'star-outline'}
146 />
147 <View style={styles.teamResultRow}>
148 <View>
149 <Text
150 variant="bodyLarge"
151 style={item.winner === item.host && styles.winner}
152 >
153 {item.host}
154 </Text>
155 <Text
156 variant="bodyLarge"
157 style={item.winner === item.guest && styles.winner}
158 >
159 {item.guest}
160 </Text>
161 </View>
162 <View style={styles.score}>
163 <Text variant="bodyLarge">{item.result.split(':')[0]}</Text>
164 <Text variant="bodyLarge">{item.result.split(':')[1]}</Text>
165 </View>
166 </View>
167 </View>
168 );
169 };
170
171 return (
172 <FlatList
173 data={teamResultsData}
174 renderItem={renderItem}
175 ItemSeparatorComponent={Divider}
176 />
177 );
178};
179
180const ThemeBasedOnSourceColor = ({ navigation, route }: Props) => {
181 const insets = useSafeAreaInsets();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…