Skip to content

Commit 2d173fa

Browse files
Update components/permissions/TelephonySmsPermissionDemo.tsx
Co-authored-by: Copilot <[email protected]>
1 parent 8d8bbd3 commit 2d173fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)