-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Support the v8 version of react-native-reanimated #499
Comments
Related comment: #412 (comment) |
Hi! Thanks for the feature request, v8 is surely cool to support.
Because that's how it works. RN has the |
reanimated didn't officially support v8 now. in the meantime i just forked and build v8 aar by myself. and here is how i check which aar to use: |
One question: is the vision-camera build.gradle run when the user runs In the meantime, is there a quick fix (possibly patched locally) for me to get @Kudo's v8 reanimated working with vision-camera 2.5.0+ on Android? It's so close but I don't quite understand everything yet :( |
No, Reanimated needs to add V8 support first. |
Thanks for the response. Interesting, so |
I'm looking at this again, and I'm curious why the |
OK I got it working with a local patch: https://gist.github.com/jzxchiang1/012af920bca8b335faab2d913fd6293d So now I'm running:
Note that iOS works without any changes (besides This is a workaround until reanimated officially supports v8, which I hope they do since all the pieces are already there. |
Nice job on the workaround @jzxchiang1 ! |
https://github.com/software-mansion/react-native-reanimated/releases/tag/3.0.0-rc.1 reanimated now has a v8 compatiable version |
Bump! |
V8 Support has been added to react-native-reanimated with 2.10.0 release Is that possible to add the v8 support to react-native-vision-camera too? |
Shouldn't be too difficult, I just don't have a need for it and don't have the free time to work on this atm |
@mrousavy Thanks for answering! In the description it says In the line 282 (https://github.com/mrousavy/react-native-vision-camera/blob/main/android/build.gradle#L282) we use .aar to extractJNI So it seems for me its a bit more complicated... What do you think? |
What feature or enhancement are you suggesting?
Very soon, reanimated will support v8. (I've gotten it working on RN 64 with the help of Kudo, who is the maintainer of react-native-v8.)
I tried the v8 version of react-native-reanimated with vision-camera 2.9.0 on iOS and it worked fine.
However, on Android it threw an error on
npm run android
because vision-camera only expects Hermes or JSC:react-native-vision-camera/android/build.gradle
Line 227 in 2cf8087
Also, these files won't exist for those running react-native-v8:
react-native-vision-camera/android/build.gradle
Line 220 in 2cf8087
One question I have is how you know whether to package the Hermes or JSC AAR at build time? Doesn't that depend on what the library user is using, which you don't know until runtime? That's why I'm confused how you can only choose to package one AAR in this PR instead of all of them.
Thanks!
What Platforms whould this feature/enhancement affect?
Android
Alternatives/Workarounds
Not sure how to get it working right now. All the ingredients for v8 support are there however.
Additional information
The text was updated successfully, but these errors were encountered: