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

Support React Native 0.77 #600

Merged
merged 10 commits into from
Feb 19, 2025
Merged

Conversation

WoLewicki
Copy link
Collaborator

@WoLewicki WoLewicki commented Jan 17, 2025

Details

PR aligning library with RN 0.77

Related Issues

Commits from RN changing methods used by this library: facebook/react-native@08e8f6a, facebook/react-native@060c594#diff-e53011726a0eaf0dd8acab115a5e380e2b6d5e5e7504e1825bbce8418c1c91cb

Manual Tests

Linked PRs

@tomekzaw tomekzaw changed the title fix: make it work on 77 Support React Native 0.77 Jan 18, 2025
@@ -132,6 +134,13 @@ android {
} else {
java.srcDirs += ["src/oldarch"]
}

// TextLayoutManager
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is not very informative

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@tomekzaw
Copy link
Collaborator

tomekzaw commented Jan 27, 2025

I'm getting the following error when trying to build a fresh RN 0.77.0 app for Android on Paper:

Screenshot 2025-01-27 at 12 10 48

@tomekzaw
Copy link
Collaborator

tomekzaw commented Jan 27, 2025

Incorrect component height on Android, 0.77.0, New Arch enabled

obraz

@j-piasecki said it's probably caused by incorrect order of commit hooks (Markdown & Reanimated).

Comment on lines 813 to 816
fontFamily: 'sans-serif',
// @ts-expect-error it works on web
boxSizing: 'border-box',
// @ts-expect-error some type changes
overflowY: 'auto',
Copy link
Collaborator

Choose a reason for hiding this comment

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

cc @Skalakid What do you think about these changes?

Copy link
Collaborator

Choose a reason for hiding this comment

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

lgtm for me, but how about changing the comment description to something more clear. We can leave it works on web like it was previously
cc @WoLewicki @tomekzaw

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok I changed it like you suggested @Skalakid .

tomekzaw
tomekzaw previously approved these changes Feb 16, 2025
@tomekzaw
Copy link
Collaborator

Tested on the example app with RN 0.77, looks good to me.

Layout works correctly on first render as well as during typing both on Android and iOS.

@WoLewicki
Copy link
Collaborator Author

So are we ready to merge it?

@tomekzaw tomekzaw merged commit 027ff55 into Expensify:main Feb 19, 2025
9 checks passed
@os-botify
Copy link
Contributor

os-botify bot commented Feb 19, 2025

🚀 Published to npm in 0.1.235 🎉

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.

4 participants