如何在React原生应用程序中显示超链接?
例如
<a href="https://google.com>Google</a>
如何在React原生应用程序中显示超链接?
例如
<a href="https://google.com>Google</a>
比如:
<Text style={{color: 'blue'}}
onPress={() => Linking.openURL('http://google.com')}>
Google
</Text>
使用与React NativeBundle 的Linking
模块.
import { Linking } from 'react-native';