-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: Bridgeless with runtimeExecutor #5734
Conversation
android/src/main/java/com/swmansion/reanimated/NodesManager.java
Outdated
Show resolved
Hide resolved
android/src/main/java/com/swmansion/reanimated/NodesManager.java
Outdated
Show resolved
Hide resolved
...VersionPatch/ReanimatedUIManager/73/com/swmansion/reanimated/ReanimatedUIManagerFactory.java
Outdated
Show resolved
Hide resolved
c09e572
to
e5a24cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm adding some more review changes just to not lose those notions, but now I will proceed to split this PR into 0.74 support part and bridgeless part.
android/src/main/java/com/swmansion/reanimated/NodesManager.java
Outdated
Show resolved
Hide resolved
android/src/main/java/com/swmansion/reanimated/ReanimatedModule.java
Outdated
Show resolved
Hide resolved
android/src/main/java/com/swmansion/reanimated/ReanimatedPackage.java
Outdated
Show resolved
Hide resolved
<!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please follow the template so that the reviewers can easily understand what the code changes affect. --> ## Summary Fix some stuff in @WoLewicki's PR #5734. ## Test plan <!-- Provide a minimal but complete code snippet that can be used to test out this change along with instructions how to run it and a description of the expected behavior. --> --------- Co-authored-by: Wojciech Lewicki <wojciech.lewicki@swmansion.com>
## Summary This PR is a part of ongoing effort to bring Reanimated to React Native 0.74 with bridgeless mode. It consists of following Pull Requests, which are split for review convenience - but shouldn't be considered separate entities. They have to be merged in the following order: - #5830 - #5815 - #5834 - #5734 ## Test plan :shipit:
## Summary This PR is a part of ongoing effort to bring Reanimated to React Native 0.74 with bridgeless mode. It consists of following Pull Requests, which are split for review convenience - but shouldn't be considered separate entities. They have to be merged in the following order: - #5830 - #5815 - #5834 - #5734 ## Test plan :shipit: --------- Co-authored-by: Wojciech Lewicki <wojciech.lewicki@swmansion.com> Co-authored-by: Krzysztof Piaskowy <krzysztof.piaskowy@swmansion.com>
## Summary This PR is a part of ongoing effort to bring Reanimated to React Native 0.74 with bridgeless mode. It consists of following Pull Requests, which are split for review convenience - but shouldn't be considered separate entities. They have to be merged in the following order: - #5830 - #5815 - #5834 - #5734 ## Test plan :shipit: --------- Co-authored-by: Wojciech Lewicki <wojciech.lewicki@swmansion.com> Co-authored-by: Krzysztof Piaskowy <krzysztof.piaskowy@swmansion.com>
...NativeVersionPatch/ReanimatedUIManager/latest/com/swmansion/reanimated/ReanimatedModule.java
Outdated
Show resolved
Hide resolved
...NativeVersionPatch/ReanimatedUIManager/latest/com/swmansion/reanimated/ReanimatedModule.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some more comments. I see you did some more refactoring of the code. It could be done in the follow-up PR, but if you are confident that it works correctly then we can go with it imo 🚀
FabricExample/android/app/src/main/java/com/fabricexample/MainApplication.kt
Show resolved
Hide resolved
...NativeVersionPatch/ReanimatedUIManager/latest/com/swmansion/reanimated/ReanimatedModule.java
Show resolved
Hide resolved
...NativeVersionPatch/ReanimatedUIManager/latest/com/swmansion/reanimated/ReanimatedModule.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big fan of these changes – some of them introduce code duplication and make things unnecessarily complex. We need to push forward with bridgeless mode support so let's merge it and work on it iteratively.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please follow the template so that the reviewers can easily understand what the code changes affect. --> ## Summary Turns out that majority of work with regards to using `RuntimeExecutor` done in - #5734 can be reverted since `jsCallInvoker` is staying in the API. Thanks to that we can significantly cleanup the code which is helpful for Worklets. ## Test plan I tested the changes on 0.74, 0.75 and 0.76 for Android/iOS Paper/Fabric and all worked well.
<!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please follow the template so that the reviewers can easily understand what the code changes affect. --> ## Summary Turns out that majority of work with regards to using `RuntimeExecutor` done in - #5734 can be reverted since `jsCallInvoker` is staying in the API. Thanks to that we can significantly cleanup the code which is helpful for Worklets. ## Test plan I tested the changes on 0.74, 0.75 and 0.76 for Android/iOS Paper/Fabric and all worked well.
<!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please follow the template so that the reviewers can easily understand what the code changes affect. --> ## Summary Turns out that majority of work with regards to using `RuntimeExecutor` done in - #5734 can be reverted since `jsCallInvoker` is staying in the API. Thanks to that we can significantly cleanup the code which is helpful for Worklets. ## Test plan I tested the changes on 0.74, 0.75 and 0.76 for Android/iOS Paper/Fabric and all worked well.
<!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please follow the template so that the reviewers can easily understand what the code changes affect. --> ## Summary Turns out that majority of work with regards to using `RuntimeExecutor` done in - #5734 can be reverted since `jsCallInvoker` is staying in the API. Thanks to that we can significantly cleanup the code which is helpful for Worklets. ## Test plan I tested the changes on 0.74, 0.75 and 0.76 for Android/iOS Paper/Fabric and all worked well.
PR bringing 0.74/bridgeless mode support to the library.