当应用程序关闭时,Expo 嵌套导航深层链接不起作用

问题描述

这是我的链接的定义:

const linking = {
        prefixes: [prefix],config: {
            screens: {
                Auth: {
                    path: 'auth',screens: {
                        Login: 'login',Signup: 'signup',ResetPassword: 'ResetPassword',SocialUsername: 'SocialUsername',},Root: {
                    path: 'root',screens: {
                        Audio: {
                            path: 'audio',screens: {
                                Listen: 'listen',AudioDetail: {
                                    path: 'detail/:audioID',Record: {path: 'record'},Profile: {
                            screens: {
                                Setting: 'setting',};

我是这样传递的:

<NavigationContainer linking={linking} ref={navigationRef}>

我在模拟器上打开这样的深层链接:exp://127.0.0.1:19000/--/root/audio/detail/5ffc4b571a4e8e0017d44de3
现在我的问题是,当应用程序在后台运行时,我指向带有 id 的详细信息页面的深层链接正在开发中,但在应用程序关闭时却没有。我收到此错误

undefined is not an object (evaluating 'v.routes[v.index].name')

它在生产中也根本不起作用。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)