@@ -5,10 +5,10 @@ import {contactImages} from '../../../images/contact-images'
55import { Markdown } from '../components/markdown'
66import { ListFooter } from '../components/list'
77import glamorous from 'glamorous-native'
8- import { phonecall } from 'react-native-communications '
8+ import { callPhone } from '../components/call-phone '
99import { tracker } from '../../analytics'
1010import { Button } from '../components/button'
11- import openUrl from '../components/open-url'
11+ import { openUrl } from '../components/open-url'
1212import type { ContactType } from './types'
1313import { GH_NEW_ISSUE_URL } from '../../globals'
1414
@@ -41,8 +41,8 @@ function formatNumber(phoneNumber: string) {
4141
4242function promptCall ( buttonText : string , phoneNumber : string ) {
4343 Alert . alert ( buttonText , formatNumber ( phoneNumber ) , [
44- { text : 'Cancel' , onPress : ( ) => console . log ( 'Call cancel pressed' ) } ,
45- { text : 'Call' , onPress : ( ) => phonecall ( phoneNumber , false ) } ,
44+ { text : 'Cancel' , onPress : ( ) => { } } ,
45+ { text : 'Call' , onPress : ( ) => callPhone ( phoneNumber , { prompt : false } ) } ,
4646 ] )
4747}
4848
0 commit comments