Closed ingviso closed 5 years ago
Sounds like this question is about a lot of details of React Native and not really related to Djinni, so I'm going to close it out. Djinni is agnostic to thread/process concerns, so I suspect it's not involved in whatever different behavior you're seeing. I don't have the context on React Native to help out, though you might consider joining the mobilecpp Slack community mentioned in the README in this repo, where you may find others with related experience.
Hello
This is more of a question then a bug.
I have a react-native app that processes images using open-cv, the image processing code is written in C++, the process uses opencv and bridged to JS using djinni. Each time a picture is taken using the app the image gets processed and saved back on the phone. When I run this on a iOS device I'm able to call the image processing multiple times, which allows me to take picture multiple times and the images get processed in the background.
But the issue is when the picture is taken on a Android device then the UI gets stuck until the image processing has finished for each picture as if the UI thread gets taken over.
The JS code is the same for both Android and IOS.
The imageprocessingModule.java is only
The iOS side is:
Not sure if the issue lies in there.
There were some issues implementing opencv for the android side and I had to downgrade the ndk to android-ndk-r17c and run it using gnustl_shared , this relates to this issue
To conclude should the processes in Android and iOS both handle multiple calls the same? Is there something that I can change to fix this so I would be able to take multiple pictures without having have to wait for the process to finish on Android side ?