webyonet / react-native-android-location-services-dialog-box

React Native Android Location Services Dialog Box
MIT License
182 stars 50 forks source link

Error in using other modules. #2

Closed EmpiteDinesh closed 7 years ago

EmpiteDinesh commented 7 years ago

Added this to project and it is working fine but getting this error when using other modules ex react-native-image-picker

The callback checkLocationServicesIsEnabled() exists in module LocationServicesDialogBox, but only one callback may be registered to a function in a native module.

webyonet commented 7 years ago

you send the code examples and screenshots of the error?

EmpiteDinesh commented 7 years ago

This happens when I select image from image picker. There must be a issue in callback.

screenshot_2016-10-26-11-34-26

webyonet commented 7 years ago

before run location services in the callback in the image picker to wait after you run it, I think the problem will be restored

EmpiteDinesh commented 7 years ago

Issue is still there, How can I avoid this error in JS code level.

webyonet commented 7 years ago

please send to code sample

satishsojitra commented 7 years ago

Hi Webyonet, I am also facing same issue, whenever code in componentDidMount method call twice we are getting this error. We implemented it in home screen in componentDidMount method there it works fine when I go to other screen and come back this home screen again I am getting same error. How to resolve this?