react-native-open-settings
Open your apps settings in the Settings app :P
Install
npm install react-native-open-settings
iOS
Add React Native Open Settings
to project libraries.
Android
- Edit
build.gradle
to look like this:
apply plugin: 'com.android.application' android { ...} dependencies { ...+ compile }
- In
settings.gradle
, insert the following code:
include ':react-native-open-settings'.projectDir = new File(rootProject.projectDir, '../node_modules/react-native-open-settings/android')
- Edit your
MainActivity.java
to look like this:
....
Usage
Require the react-native-open-settings
module.
;
And then, where you want to open the settings, just do
OpenSettings
Have fun!