_TelePhone(TelephoneNumber){ Platform.OS==='android'? NativeModules.phone.LawyerTelephone(TelephoneNumber):Linking.openURL('tel:'+TelephoneNumber); } render() { return () } 案件详情: 大舅去二舅家找三舅说四舅被五舅骗去六舅家偷七舅放在八舅柜子里九舅借十舅发给十一舅工资的1000元。大舅去二舅家找三舅说四舅被五舅骗去六舅家偷七舅放在八舅柜子里九舅借十舅发给十一舅工资的1000元。大舅去二舅家找三舅说四舅被五舅骗去六舅家偷七舅放在八舅柜子里九舅借十舅发给十一舅工资的1000元。 this._TelePhone(this.props.TEL)}> 开始服务
Possible Unhandled Promise Rejection (id: 0): Unable to open URL: telprompt:18217049979 Error: Unable to open URL: telprompt:18217049979
求大神指点,谢谢!
建议你catch一下,不然崩溃就不好了
Linking.openURL('tel:'+TelephoneNumber).catch(e=>console.war(e))
问题已经解决了,原来是模拟器的缘故,到真机上测试全部的OK