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

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

FIX: "Illegal callback invocation from native module." #68

Closed kholiavko-roman closed 5 years ago

kholiavko-roman commented 5 years ago

Currently when we call forceCloseDialog this error appears.

02-13 14:43:20.682 18474 18534 E unknown:ReactNative: Exception in native call
02-13 14:43:20.682 18474 18534 E unknown:ReactNative: java.lang.RuntimeException: Illegal callback invocation from native module. This callback type only permits a single invocation from native code.
02-13 14:43:20.682 18474 18534 E unknown:ReactNative:   at com.facebook.react.bridge.CallbackImpl.invoke(CallbackImpl.java:28)
02-13 14:43:20.682 18474 18534 E unknown:ReactNative:   at com.facebook.react.bridge.PromiseImpl.reject(PromiseImpl.java:68)
02-13 14:43:20.682 18474 18534 E unknown:ReactNative:   at com.facebook.react.bridge.PromiseImpl.reject(PromiseImpl.java:52)
02-13 14:43:20.682 18474 18534 E unknown:ReactNative:   at com.showlocationservicesdialogbox.LocationServicesDialogBoxModule.forceCloseDialog(LocationServicesDialogBoxModule.java:52)
02-13 14:43:20.682 18474 18534 E unknown:ReactNative:   at java.lang.reflect.Method.invoke(Native Method)
02-13 14:43:20.682 18474 18534 E unknown:ReactNative:   at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
02-13 14:43:20.682 18474 18534 E unknown:ReactNative:   at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:160)
02-13 14:43:20.682 18474 18534 E unknown:ReactNative:   at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
02-13 14:43:20.682 18474 18534 E unknown:ReactNative:   at android.os.Handler.handleCallback(Handler.java:790)
02-13 14:43:20.682 18474 18534 E unknown:ReactNative:   at android.os.Handler.dispatchMessage(Handler.java:99)
02-13 14:43:20.682 18474 18534 E unknown:ReactNative:   at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
02-13 14:43:20.682 18474 18534 E unknown:ReactNative:   at android.os.Looper.loop(Looper.java:164)
02-13 14:43:20.682 18474 18534 E unknown:ReactNative:   at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
02-13 14:43:20.682 18474 18534 E unknown:ReactNative:   at java.lang.Thread.run(Thread.java:764)

Similar issue. https://github.com/webyonet/react-native-android-location-services-dialog-box/issues/43

webyonet commented 5 years ago

@kholiavko-roman thanks

kholiavko-roman commented 5 years ago

@webyonet When you are planning publish new version to npm ?

webyonet commented 5 years ago

@kholiavko-roman new version released