feat: new architecture support#659
Conversation
|
When I do a full reload of metro, I get this error:
Have you run into this issue before? It comes from BabylonNative source code so my guess is that we are calling reset() at wrong time Edit: Looks like its caused by the order in which invalidate is now called. This function is called later in new architecture 👎🏻 + (void)invalidate
{
BabylonNative::Deinitialize();
} |
|
Everything works as expected when I add an early return in the dispose function. Is it possible that we don't need this for new architecture? I don't know the backstory but maybe it addressed issue with deinitializing the native view on old arch? public dispose(): void {
if (!this.isDisposed) {
+ return;
super.dispose();
BabylonNative.resetInitializationPromise();
reset();
this._isDisposed = true;
}
}
|
45b44ad to
865c6c1
Compare
|
On Android Im getting instant crash when building TestApp. Not sure if this is reproducible on your end? I'm attaching my logcat stacktrace below: Logcat error |
8c8cb5b to
3ebf766
Compare
...njs/react-native-iosandroid/android/src/main/java/com/babylonreactnative/BabylonPackage.java
Show resolved
Hide resolved
3ebf766 to
2cf3c73
Compare
|
Hey @bghgary @CedricGuillemet @ryantrem Here are the resources I've used for this migration:
Im going to get back to working on this when we get this 0.73+ JSI access issue fixed |
|
@okwasniewski I get the same build error for RNTA Windows when the RN versions in package.json are different from current master values. |
|
Thanks, @CedricGuillemet. I will try downgrading the versions now that I have some time to work on this PR. Any updates regarding the 0.73+ JSI access issue? |
|
Hi @okwasniewski |
9a74846 to
478b0e7
Compare
478b0e7 to
e93f7b8
Compare
|
HI @okwasniewski and @CedricGuillemet , |
|
@CedricGuillemet is out this week. @ryantrem Do you know the current state? |
|
No, we'll need to check with @CedricGuillemet. I'm not sure if/how the source package changes will affect this. |

Describe the change
This PR introduces new architecture support. It builds off the #654 PR. (So it would be great if we could land it first)
You can review only this commit: 45b44ad
Known issues
TODO
Screenshots
Testing
Try to build the app using new architecture