React Navigation 动态屏幕和深度链接
我想通过反应导航创建动态选项卡屏幕,但我不知道如何通过深层链接来解决它。
我希望我的选项卡屏幕可以通过深度链接访问,例如: /tabs/:tabId 但我不知道如何处理链接配置。 如果有人可以帮助我,我已经创建了这个小吃:
https://snack.expo.dev/@natinho68/getting-started-%7C-react-navigation
I want to create dynamically tab screens with react navigation, but I don't know how to figure it out with the deep linking.
I would like to have my tabs screens accessible with deeplinking like : /tabs/:tabId but I don't know how to deal with the linking config.
If there is someone who can help me, I have created this snack :
https://snack.expo.dev/@natinho68/getting-started-%7C-react-navigation
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,您需要通过文档
进行设置
这是一个最小的示例。 Root stack 是一个堆栈导航器,有 3 个屏幕:启动画面、登录和应用程序。 App 是另一个堆栈导航器(嵌套),有 2 个屏幕:仪表板和登录。
在 getInitialURL 内部,您可以处理打开应用程序的 url。
在这里您可以了解如何在没有导航属性的情况下进行导航。
First you need to set it up via documentation
This is minimal example. Root stack is a stack navigator which has 3 screens: Splash, Login and App. And App is another stack navigator(nested) with 2 screens: Dashboard and Login.
Inside of getInitialURL you can handle url that opened the app.
Here you can find out how to navigate without navigation prop.