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
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ SPEC CHECKSUMS:
RNInAppBrowser: e36d6935517101ccba0e875bac8ad7b0cb655364
RNKeychain: 4f63aada75ebafd26f4bc2c670199461eab85d94
RNOS: 6f2f9a70895bbbfbdad7196abd952e7b01d45027
RNReanimated: 0a4de6844119f4f1c3a46e6e7958ee7425ab4d0f
RNReanimated: ed9c3d427807cca371a4eed59cfd238a4c866e0c
RNScreens: 40a2cb40a02a609938137a1e0acfbf8fc9eebf19
RNSensors: c363d486c879e181905dea84a2535e49af1c2d25
RNSentry: e86fb2e2fec0365644f4b582938bf66be515acce
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"lint": "eslint '**/*.{js,ts,tsx}'",
"lint:fix": "eslint '**/*.{js,ts,tsx}' --fix",
"format": "prettier '**/*.{js,ts,tsx,json,feature}' --write",
"setup": "yarn clean && yarn pod:install && yarn allow-scripts && ./scripts/postinstall.sh",
"setup": "yarn clean && yarn allow-scripts && ./scripts/postinstall.sh && yarn pod:install",
"setup:e2e": "cd wdio && yarn install",
"start:ios": "./scripts/build.sh ios debug",
"start:ios:qa": "./scripts/build.sh ios qaDebug",
Expand Down
12 changes: 12 additions & 0 deletions patches/react-native-reanimated+2.11.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/node_modules/react-native-reanimated/scripts/reanimated_utils.rb b/node_modules/react-native-reanimated/scripts/reanimated_utils.rb
index d369e5a..3e1e6ae 100644
--- a/node_modules/react-native-reanimated/scripts/reanimated_utils.rb
+++ b/node_modules/react-native-reanimated/scripts/reanimated_utils.rb
@@ -1,6 +1,6 @@
def try_to_parse_react_native_package_json(node_modules_dir)
react_native_package_json_path = File.join(node_modules_dir, 'react-native/package.json')
- if !File.exists?(react_native_package_json_path)
+ if !File.exist?(react_native_package_json_path)
sethkfman marked this conversation as resolved.
Show resolved Hide resolved
return nil
end
return JSON.parse(File.read(react_native_package_json_path))