导入linking库 然后在调用的方法里面+
renderSystem = ( url ) => { Linking . canOpenURL ( url ). then ( supported => { if ( ! supported ) { console . log ( 'Can\'t handle url: ' + url ); } else { return Linking . openURL ( url ); } }). catch ( err => console . error ( 'An error occurred' , err )); }
在使用时传入有用信息
例如
onPress = { this . renderSystem . bind ( this , 'tel:' + phone )} { } 到此就可以简单的使用系统内部的一些功能。
自己摸索,如果不对,谢谢大家前来留言指导。