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

RN Reanimated: fix deprecated/ removed File.exists method #5592

Closed
wants to merge 3 commits into from

Conversation

jpcloureiro
Copy link
Contributor

@jpcloureiro jpcloureiro commented Jan 24, 2023

Description
react-native-reanimated 2.11.0 uses a deprecated ruby method that breaks the command pod install at least on ruby 2.6 onwards[1]

Problem also spotted on react-native repository[2] as well as react-native-reanimated[3]

Screenshots/Recordings

Screenshot 2023-01-24 at 15 18 07

This patch replaces the deprecated method with the recommended one[1]

[1] https://rubyapi.org/2.6/o/file#method-c-exist-3F
[2] facebook/react-native#35853
[3] software-mansion/react-native-reanimated#3919

@jpcloureiro jpcloureiro added No QA Needed Apply this label when your PR does not need any QA effort. needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) team-mobile-client labels Jan 24, 2023
@jpcloureiro jpcloureiro requested a review from a team as a code owner January 24, 2023 15:19
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

Copy link
Contributor

@sethkfman sethkfman left a comment

Choose a reason for hiding this comment

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

LGTM

@sethkfman sethkfman removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Feb 1, 2023
@jpcloureiro
Copy link
Contributor Author

I see that react-native-reanimated released v3 RC-10 with this fix

https://github.com/software-mansion/react-native-reanimated/releases/tag/3.0.0-rc.10

We are currently using Reanimated2, the latest stable version.

Let's keep an eye on it & prepare to do a major version bump when it gets out of RC stage

@eisodev
Copy link

eisodev commented Feb 8, 2023

For anyone dropping in here who wish to stay on v2:
https://github.com/software-mansion/react-native-reanimated/releases/tag/2.14.0

Has the aforementioned fix included.

@jpcloureiro
Copy link
Contributor Author

Thanks @eisodev

Closing this in favor of #5729

@jpcloureiro jpcloureiro closed this Feb 8, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Feb 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
No QA Needed Apply this label when your PR does not need any QA effort. team-mobile-platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants