Skip to content

Commit d489567

Browse files
Update components/permissions/TelephonySmsPermissionDemo.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 064b954 commit d489567

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

components/permissions/TelephonySmsPermissionDemo.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,6 @@ export default function TelephonySmsPermissionDemo() {
273273
}
274274
setMakingCall(true);
275275
try {
276-
const isSmsAvailable = await SMS.isAvailableAsync();
277-
if (!isSmsAvailable) {
278-
Alert.alert('Not Available', 'Phone calls are not available on this device');
279-
return;
280-
}
281-
282276
// Use tel: URL scheme - this will open the dialer
283277
const url = `tel:${phoneNumber}`;
284278
const supported = await Linking.canOpenURL(url);

0 commit comments

Comments
 (0)