Skip to content
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

[WIP] chore: Add Fabric support in the macos-example #6922

Draft
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

MatiPl01
Copy link
Member

@MatiPl01 MatiPl01 commented Jan 22, 2025

Summary

This PR bumps macos-example RN version to one running on Fabric by default.

It also bumps some other dependencies and adds react-native-safe-area-context mock (as this library doesn't support Fabric on macos yet). Unfortunately, react-native-safe-area-context is also used by stack navigator and it seems that adding this mock breaks navigation as navigator no longer works as expected.

What is more, transformations on macos seem to be broken. It looks as if the center transform origin was in the top left corner of the view and changing it to bottom right results in view being transformed relative to the center.

Example recording

Event though the app starts, it looks weird

Screen.Recording.2025-01-22.at.16.06.09.1.mp4

Issues

I noticed some issues that I reported on the react-native-macos repo:

@MatiPl01 MatiPl01 self-assigned this Jan 22, 2025
@MatiPl01 MatiPl01 force-pushed the @matipl01/fabric-in-macos-example branch from 9e1460e to 59b01df Compare January 24, 2025 13:27
@MatiPl01 MatiPl01 changed the base branch from main to @matipl01/example-apps-setup-cleanup January 24, 2025 13:27
@MatiPl01 MatiPl01 marked this pull request as draft January 24, 2025 13:27
@MatiPl01 MatiPl01 force-pushed the @matipl01/example-apps-setup-cleanup branch from cae829d to 6fddb59 Compare January 24, 2025 14:54
Base automatically changed from @matipl01/example-apps-setup-cleanup to main January 24, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant