react-native-system-setting
react-native-system-setting copied to clipboard
A library to access system setting, and change it easily. eg: volume, brightness, wifi
const checkWifiAndLocation = async () => { setState({ ...state, locationEnable: await SystemSetting.isLocationEnabled(), }); };
* Fix SoundVolume addVolumeListener callback have the same behaviour on Android and iOS * Fix #102 * Fix c19354837/react-native-system-setting/issues/102
When the phone receives a phone call the ringer volume is not going down with the below code. _changeVol(value) { SystemSetting.setVolume(value, { type: 'call' }); SystemSetting.setVolume(value, { type: 'ring' });...
Fatal Exception: java.lang.RuntimeException: Unable to destroy activity {com.taxi135.driver/com.taxi135.driver.MainActivity}: java.lang.IllegalArgumentException: Receiver not registered: com.ninty.system.setting.SystemSetting$4@e5b64a4 at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4447) at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4465) at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4739) at android.app.ActivityThread.-wrap18() at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1621) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:176) at android.app.ActivityThread.main(ActivityThread.java:6635) at...
Fatal Exception: java.lang.RuntimeException: Unable to destroy activity {com.taxi135.driver/com.taxi135.driver.MainActivity}: java.lang.IllegalArgumentException: Receiver not registered: com.ninty.system.setting.SystemSetting$4@e5b64a4 at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4447) at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4465) at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4739) at android.app.ActivityThread.-wrap18() at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1621) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:176) at android.app.ActivityThread.main(ActivityThread.java:6635) at...
Can I switch audio speaker with this library?
Hello, I'm using this module to detect if airplane mode is enabled or not inside my react native application. when I call the state inside component did mount it returns...
If you set the volume to say .25 then change it on the buttons then try and set it to .25 it doesn't allow you to update it since the...
For some reason when i try using switchWifiSilence or switchBluetooth silence, the service is turned on but the callback is never called.