-
Notifications
You must be signed in to change notification settings - Fork 465
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
Add FabricExample
application with the new arch enabled
#911
Add FabricExample
application with the new arch enabled
#911
Conversation
Hi, thanks for working on this. I see you're trying to add TurboModule support. Have you had a look at how the other example app works? We are using react-native-test-app, which allows us to easily enable TurboModule (for both Android and iOS/macOS). Would it make more sense to reuse the existing test app and instead work on enabling building of both Legacy and New Architecture on CI? cc @krizzu |
I don't have experience with A potential problem could be that the library would work only on the RN 0.70 and higher when using the new arch due to a different codegen config, and It seems like neither 0.70, nor 0.71 is not fully supported yet. I could close this PR and remove the commits related to the new app from the other PR so you could set it up correctly. |
If you read the motivation, the whole purpose of the project is to make upgrades transparent. You need only bump the version number in
The table is incomplete because
Please give it a try. You should be able to just bump Edit: Just noticed that we're on a slightly older version of react-native-test-app. I can bump it now. |
I've tried to implement it, but after upgrading to React Native 0.71, the
I've changed the
On Android I had to add After that I got:
which I believe is due to facebook/react-native#35495. |
#915 should fix it.
This one I'm unfamiliar with. @krizzu do you know why we have to do this? |
What version of Kotlin is used? In 1.6 buildList became stable |
@krizzu You're right, it seems like my Android Studio decided to use Kotlin 1.5. I've just tried building from CLI and I didn't get this error. |
It fixes the first problem, however the second one:
is still there. |
Sorry, I missed that CLI requires Update: Upstream PR: facebook/react-native#36096 |
Ok, I've got it to work on both Android and iOS. For now I've added a quick fix for the codegen issue linked above: abed02f#diff-ed8534ece8080a880075e103269eb1b9bdff22e8dfcf8427d7d977603292b889R59-R65. I guess this PR can now be closed as #910 no longer requires it? Thanks for your help! |
Thank you for working on this. Please let me know if you hit other issues with the test app. I'll try to wrap up #915 soon. |
Summary
This PR adds a new example app using RN 0.71 with the new architecture enabled by default. This was used to test #910.
It's not necessary for this PR to be merged in order to use the one converting the library to turbomodule as the app may be removed. Setting the base to this one should make relevant changes easier to check.