react-native-ios-settings-bundle
react-native-ios-settings-bundle copied to clipboard
Does not work on real device
I used the following code. It works on the simulator however it does not work on real device. On real device I am not sure it its running any of this code as it does not work however on simulator everything works good.
import RNIosSettingsBundle from 'react-native-ios-settings-bundle'; componentDidMount(){ RNIosSettingsBundle.get('screenon',(err,value)=>{ if(value && !err) // my special task else console.log(err); }) }