sAleksovski / react-native-android-widget

Build Android Widgets with React Native
https://sAleksovski.github.io/react-native-android-widget/
MIT License
594 stars 22 forks source link

In api 22 and api 23 widget crash #104

Open mozhi1364 opened 3 hours ago

mozhi1364 commented 3 hours ago

Thanks a lot for this great library .I found out that it fixed in version 0.13.2 but in new version crash

sAleksovski commented 3 hours ago

What version are you using? What error do you get? Can you share the stacktrace?

mozhi1364 commented 1 hour ago

I have problem with api 22 and 23 in latest version 0.14.1 the error is not catch in javascript ,in android studio i could see the error E Exception in native call java.lang.RuntimeException: Could not invoke AndroidWidget.drawWidgetById at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:381) at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:149) at com.facebook.jni.NativeRunnable.run(Native Method) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29) at android.os.Looper.loop(Looper.java:148) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:234) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.facebook.react.bridge.JavaMethodWrapper.invoke(Ja

mozhi1364 commented 1 hour ago

but in version 0.14.0 and 0.13.2 is ok .Thank You for This Amazing Library! I wanted to ask if adding iOS widget support is part of your future plans for the library

sAleksovski commented 19 minutes ago

Can you share the full log? I see a mention of drawWidgetById, but not what's causing the error.

No plans for iOS support.