【问题标题】:Open Android System Settings in React Native在 React Native 中打开 Android 系统设置
【发布时间】:2017-05-21 01:48:09
【问题描述】:

我尝试了this answer,但它不适用于 Android。

如何使用Linking.openURL('setting-url-here')打开设置

【问题讨论】:

标签: android react-native react-native-android


【解决方案1】:

你可以使用这个库react-native-common-intents React-native-Common-intents

打开设置可以调用

RNIntents.openSettings();

【讨论】:

    【解决方案2】:

    Linking.openSettings()

    迟到总比没有好。欲了解更多信息。

    堆栈溢出问答:React Native Open settings through Linking.openURL in IOS

    ReactNative 文档: https://reactnative.dev/docs/linking#open-custom-settings

    【讨论】:

      猜你喜欢
      • 2020-08-12
      • 2020-04-13
      • 1970-01-01
      • 2019-05-17
      • 1970-01-01
      • 2019-07-29
      • 2018-05-02
      • 2017-05-31
      • 2012-12-10
      相关资源
      最近更新 更多