swittk / react-native-lua

Lua Interpreter in React Native
MIT License
10 stars 3 forks source link

JsCallInvoker on Android #1

Closed VolkerLieber closed 2 years ago

VolkerLieber commented 2 years ago

I had similar problems to what you described with calling the call invoker on Android. Maybe this can help you: https://gist.github.com/VolkerLieber/fd7f5b95d8ec0b64c61f689d4c8a2d76

swittk commented 2 years ago

Oh wow thanks a lot @VolkerLieber

I'll be testing that out immediately once I get off my shift.

VolkerLieber commented 2 years ago

https://github.com/swittk/react-native-lua/commit/d43062632201ab214d3103d17447b8582c29dafc seems to implement the suggestion

swittk commented 2 years ago

Does it work for you? I only tried it on the Android Emulator since I don't daily-drive an Android phone.

VolkerLieber commented 2 years ago

Sorry for the late reply. I did not test your library on-device so far, but the library I'm currently working on uses the same "without fbjni" code and runs without problems on real Android devices.