【发布时间】:2016-12-29 03:10:17
【问题描述】:
我正在浏览 React Native 中的 docs,只能从我所在的应用程序中找到导航到外部链接。
我希望能够导航到Settings 应用程序(更具体地说是隐私> 位置服务页面),但似乎无法在其上找到必要的信息。我正在尝试通过 React Native 复制 native iOS 的方法。
这可能吗?
我尝试了以下方法来检测是否有设置 URL。控制台记录了Settings url works,但是它没有导航到该页面。
更新:感谢@zvona,我现在正在导航到设置页面,但不确定如何访问特定的深层链接。
Linking.canOpenURL('app-settings:').then(supported => {
console.log(`Settings url works`)
Linking.openURL('app-settings:'
}).catch(error => {
console.log(`An error has occured: ${error}`)
})
【问题讨论】:
标签: ios react-native