Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open Android System Settings in React Native

I tried this answer but it didn't work with Android.

How can I open Settings with Linking.openURL('setting-url-here')

like image 720
Minh Chu Avatar asked Jan 06 '17 10:01

Minh Chu


People also ask

How does React Native work on Android?

React Native allows developers to build apps by spinning up JS threads that interpret JavaScript code, by making a native bridge between the app and the target platform. The bridge concept leverages the library and transfers the component's hierarchy to the mobile devices view.

How do I open Settings app?

Open the Android Settings from its Home screen shortcut On Android 12, swipe up or tap on the All apps button, and find the Settings app. If you tap and hold on it, then move your finger, you will see the Home screen appear.


2 Answers

You can use this library react-native-common-intents React-native-Common-intents

to open settings you can call

RNIntents.openSettings();
like image 108
Wahdat Jan Avatar answered Sep 29 '22 01:09

Wahdat Jan


Linking.openSettings()

Better late than never. For more info.

Stack overflow question and answer: React Native Open settings through Linking.openURL in IOS

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

like image 30
unSensei Avatar answered Sep 28 '22 23:09

unSensei