react-native-system-setting
react-native-system-setting copied to clipboard
addLocationListener triggered multiple times instead of one
Usage :- this.locationListener = SystemSetting.addLocationListener( async (locationEnabled) =>{ if(!locationEnabled){ console.log("Location is turned off in between"); await this.getLocationAccess(); } } ); The logs are printing multiple times...How to prevent this effect?
I also facing same issue, How to resolve this?
is this issue Solved? I also facing same issue, How to resolve this?
I had the same issue, but i resolved it hacky with a debounce function... not ideal but it works