Skip to content

Commit ce2e748

Browse files
guilhermeponteschristopherdro
authored andcommitted
Enhance Podfile. (react-native-maps#1252)
1 parent c209554 commit ce2e748

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

example/ios/Podfile

+6-7
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ platform :ios, '8.0'
55

66
# Change 'AirMapsExplorer' to match the target in your Xcode project.
77
target 'AirMapsExplorer' do
8+
rn_path = '../../node_modules/react-native'
89

9-
pod 'Yoga', :path => '../../node_modules/react-native/ReactCommon/yoga/Yoga.podspec'
10-
pod 'React', path: '../../node_modules/react-native', :subspecs => [
10+
pod 'Yoga', path: "#{rn_path}/ReactCommon/yoga/Yoga.podspec"
11+
pod 'React', path: rn_path, subspecs: [
1112
'Core',
1213
'RCTActionSheet',
1314
'RCTAnimation',
@@ -22,16 +23,14 @@ target 'AirMapsExplorer' do
2223
'BatchedBridge'
2324
]
2425

25-
pod 'GoogleMaps' # <~~ remove this line if you do not want to support GoogleMaps on iOS
26+
pod 'GoogleMaps' # Remove this line if you don't want to support GoogleMaps on iOS
2627
pod 'react-native-maps', path: '../../'
27-
pod 'react-native-google-maps', path: '../../' # <~~ if you need GoogleMaps support on iOS
28-
28+
pod 'react-native-google-maps', path: '../../' # If you need GoogleMaps support on iOS
2929
end
3030

31-
3231
post_install do |installer|
3332
installer.pods_project.targets.each do |target|
34-
if target.name == "react-native-google-maps"
33+
if target.name == 'react-native-google-maps'
3534
target.build_configurations.each do |config|
3635
config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
3736
end

0 commit comments

Comments
 (0)