Skip to content

Commit

Permalink
Cocoapods: Fix deprecated/removed File.exists method (#2368)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekzaw committed Jan 12, 2023
1 parent 8d114ae commit bb7c29b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RNGestureHandler.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit bb7c29b

Please sign in to comment.