简体   繁体   中英

Enable Phone settings using react-native

I want to turn on Location/GPS if location was turned off .Is this possible to achieve this using react-native ? .I searched this on many sites , they told me to do the changes in Java files , so that is not possible for my app . My app is created by Pure react-native codes so someone please guide/refer me on this .

you can try react-native-system-setting

It provides some system setting APIs for you. Support iOS and Android both.

Support

  • Volume ( with listener)
  • Brightness
  • Wifi switch
  • Location
  • Bluetooth

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM