Created
October 15, 2017 01:37
-
-
Save ginnyfahs/eed32384ae99a73e831fbc9be4d43285 to your computer and use it in GitHub Desktop.
Fixing typos on Podfile for React Native Maps - iOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You Podfile should look similar to this file. React Native currently does not support use_frameworks! | |
source 'https://github.com/CocoaPods/Specs.git' | |
platform :ios, '8.0' | |
# Change 'AirMapsExplorer' to match the target in your Xcode project. | |
target 'AirMapsExplorer' do | |
rn_path = '../node_modules/react-native' | |
pod 'Yoga', path: "#{rn_path}/ReactCommon/yoga/Yoga.podspec" | |
pod 'React', path: rn_path, subspecs: [ | |
'Core', | |
'RCTActionSheet', | |
'RCTAnimation', | |
'RCTGeolocation', | |
'RCTImage', | |
'RCTLinkingIOS', | |
'RCTNetwork', | |
'RCTSettings', | |
'RCTText', | |
'RCTVibration', | |
'RCTWebSocket', | |
'BatchedBridge' | |
] | |
pod 'GoogleMaps' # Remove this line if you don't want to support GoogleMaps on iOS | |
pod 'react-native-maps', path: '../' | |
pod 'react-native-google-maps', path: '../' # If you need GoogleMaps support on iOS | |
end | |
post_install do |installer| | |
installer.pods_project.targets.each do |target| | |
if target.name == 'react-native-google-maps' | |
target.build_configurations.each do |config| | |
config.build_settings['CLANG_ENABLE_MODULES'] = 'No' | |
end | |
end | |
if target.name == "React" | |
target.remove_from_project | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Dont we need
Also isn't it
path:
rn_maps_path
instead of'../'