【问题标题】:React native Deeplinking using expo v40.0.0使用 expo v40.0.0 反应原生 Deeplinking
【发布时间】:2021-12-10 13:10:44
【问题描述】:

如何在 React Native 中使用深度链接在没有导航的情况下使用 expo 将 Web 链接到应用程序

【问题讨论】:

    标签: javascript react-native


    【解决方案1】:

    添加样式

    import {Text, View, TouchableOpacity, Linking, } from 'react-native'
    
    function App() {
    return(
     <View>
        <TouchableOpacity onPress={() =>{Linking.openURL(url)}}>
           <Text>www.example.com</Text> 
        </TouchableOpacity>
     </View>
    )}
    

    【讨论】:

    • 嘿,谢谢你的回答,但我的问题是我想点击网页上的按钮并使用没有导航的 expo 重定向到应用程序特定屏幕
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-12-29
    • 1970-01-01
    • 2021-03-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-07
    相关资源
    最近更新 更多