-
Notifications
You must be signed in to change notification settings - Fork 61
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: new architecture support #659
base: master
Are you sure you want to change the base?
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
@Override | ||
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) { | ||
return Arrays.<NativeModule>asList(new BabylonModule(reactContext)); | ||
} | ||
|
||
@NonNull | ||
@Override | ||
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) { | ||
return Arrays.<ViewManager>asList(new EngineViewManager()); |
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.
Add comment here to explain how EngineViewManager is picked for arch
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. |
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