Skip to content

[iOS] Fabric renderer fix #7867

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

Merged
merged 1 commit into from
Apr 24, 2024
Merged

[iOS] Fabric renderer fix #7867

merged 1 commit into from
Apr 24, 2024

Conversation

TheLonelyAstronaut
Copy link
Contributor

After migration to RN73,RNNReactView now extends from RCTSurfaceHostingProxyRootView and uses new initWithBridge: implementation (with Fabric) with RCTFabricSurface instance. In initWithBridge: method, we call [super initWithSurface:surface sizeMeasureMode:sizeMeasureMode], but this method located in RCTSurfaceHostingView (parent for RCTSurfaceHostingProxyRootView) and does not call [surface start] (unlike RCTSurfaceHostingProxyRootView [super initWithSurface:surface] that calls it, but it does not allow us to specify RCTSurfaceSizeMeasureMode), so all we need to do is to call [surface start] after RNNReactView init.

Also I created Expo plugin for this wonderful library, it supports SDK 49 and SDK 50 (RN 72 & 73): RNN Expo Plugin

Copy link
Collaborator

@asafkorem asafkorem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for your contribution!

@asafkorem asafkorem linked an issue Apr 24, 2024 that may be closed by this pull request
1 task
@asafkorem asafkorem merged commit c4d5cf9 into wix:master Apr 24, 2024
@asafkorem
Copy link
Collaborator

asafkorem commented Apr 24, 2024

Released with 7.39.2
Thanks @TheLonelyAstronaut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fabric is not working on IOS.
2 participants