react-native-ios-settings-bundle icon indicating copy to clipboard operation
react-native-ios-settings-bundle copied to clipboard

Does not work on real device

Open elmcapp opened this issue 4 years ago • 0 comments

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); }) }

elmcapp avatar Mar 10 '21 22:03 elmcapp