Open Settings App from another App in iOS - React Native

后端 未结 9 1259
予麋鹿
予麋鹿 2020-12-29 02:40

I\'m going through the docs in React Native and can only find navigating to external links from the app I am in.

I want to be able to navigate to the Settings

相关标签:
9条回答
  • 2020-12-29 03:28

    Old question, but this didn't work for me on Android and I found something that did. Hope this helps anyone looking for the same. :)

    https://github.com/lunarmayor/react-native-open-settings I don't have the ability to test it for iOS though.

    Opens the platform specific settings for the given application.

    0 讨论(0)
  • 2020-12-29 03:33

    For example: to navigate under Settings/Bluetooth you have to use Linking.openURL('App-Prefs:Bluetooth');

    For iOS 14 and ReactNative 16.13

    0 讨论(0)
  • 2020-12-29 03:36

    You can deep-link referencing the settings's index like so:

        Linking.openURL('app-settings:{index}')
    

    For example Linking.openURL('app-settings:{3}') would open the Bluetooth settings.

    0 讨论(0)
提交回复
热议问题