【发布时间】:2021-12-10 13:10:44
【问题描述】:
如何在 React Native 中使用深度链接在没有导航的情况下使用 expo 将 Web 链接到应用程序
【问题讨论】:
如何在 React Native 中使用深度链接在没有导航的情况下使用 expo 将 Web 链接到应用程序
【问题讨论】:
添加样式
import {Text, View, TouchableOpacity, Linking, } from 'react-native'
function App() {
return(
<View>
<TouchableOpacity onPress={() =>{Linking.openURL(url)}}>
<Text>www.example.com</Text>
</TouchableOpacity>
</View>
)}
【讨论】: