如何在React Native应用程序中显示超链接?
例如
<a href="https://google.com>Google</a>
像这样:
<Text style={{color: 'blue'}}
onPress={() => Linking.openURL('http://google.com')}>
Google
</Text>
使用Linking
与React Native捆绑在一起的模块。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句