Skip to content

Commit 2d173fa

Browse files
Update components/permissions/TelephonySmsPermissionDemo.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8d8bbd3 commit 2d173fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/permissions/TelephonySmsPermissionDemo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ export default function TelephonySmsPermissionDemo() {
509509
<FlatList
510510
data={contacts}
511511
renderItem={renderContactItem}
512-
keyExtractor={(item, index) => (item as any).id || `contact-${index}`}
512+
keyExtractor={(item, index) => item.id ?? `contact-${index}`}
513513
style={styles.flatList}
514514
onEndReached={() => loadContacts(true)}
515515
onEndReachedThreshold={0.5}

0 commit comments

Comments
 (0)