(buttonIndex) => {
   switch (buttonIndex) {
     case 0:
       Communications.phonecall(phone, true);
       break;
     case 1:
       Communications.text(phone);
       break;
   }
 });
示例#2
0
export function callPhone(phoneNumber: string, opts?: Options) {
	const {prompt = true} = opts || {}
	try {
		phonecall(phoneNumber, prompt)
	} catch (err) {
		Alert.alert(
			"Apologies, we couldn't call that number",
			`We were trying to call "${phoneNumber}".`,
			[
				{
					text: 'Darn',
					onPress: () => {},
				},
				{
					text: 'Copy number',
					onPress: () => Clipboard.setString(phoneNumber),
				},
			],
		)
	}
}
示例#3
0
 call() {
   const tel = this.props.student.telephone.replace(/-/g, '')
   Communications.phonecall(tel, true)
 }
示例#4
0
 <TouchableOpacity onPress={() => Communications.phonecall('0123456789', true)}>
 const onPress = () => {
   phonecall(p.number, false);
 };
示例#6
0
				  <TouchableOpacity style={{height:40}} onPress={() => Communications.phonecall('180017001600', true)}> 
示例#7
0
 <Button onPress={() => Communications.phonecall(`${currentPet.contact_phone}`, true)}>
示例#8
0
 {text: 'OK', onPress: () =>  Communications.phonecall(this.props.navigation.state.params.DienThoai, true)},
示例#9
0
文件: setting.js 项目: LaryIII/NY
 _call:function(){
   Communications.phonecall('4008288686',true);
 },
 <TouchableOpacity onPress={() => Communications.phonecall(this.props.personInfo.cell, true)}>
示例#11
0
 _onHotlineButton(){
   Communications.phonecall('2134584288', true)
 }
示例#12
0
 <TouchableHighlight onPress={() => Communications.phonecall('022117734000', true)}>
示例#13
0
 <TouchableHighlight onPress={() => Communications.phonecall('911', true)} style={styles.buttonbottom}>