From bb7c29beb114c66bb083864347c0c4380a4c550d Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Thu, 12 Jan 2023 12:49:03 +0100 Subject: [PATCH] Cocoapods: Fix deprecated/removed File.exists method (#2368) Same as https://github.com/software-mansion/react-native-reanimated/pull/3919 Fixes https://github.com/software-mansion/react-native-gesture-handler/issues/2367 --- RNGestureHandler.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNGestureHandler.podspec b/RNGestureHandler.podspec index fed3e8aea3..fc3226de17 100644 --- a/RNGestureHandler.podspec +++ b/RNGestureHandler.podspec @@ -2,7 +2,7 @@ require "json" fabric_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1' -isUserApp = File.exists?(File.join(__dir__, "..", "..", "node_modules", "react-native", "package.json")) +isUserApp = File.exist?(File.join(__dir__, "..", "..", "node_modules", "react-native", "package.json")) if isUserApp libInstances = %x[find ../../ -name "package.json" | grep "/react-native-gesture-handler/package.json" | grep -v "/.yarn/"] libInstancesArray = libInstances.split("\n")