Skip to content

Instantly share code, notes, and snippets.

@joshleichtung
Created October 29, 2017 22:06
Show Gist options
  • Save joshleichtung/822900b34d0d5fa0eb298f1e8656df60 to your computer and use it in GitHub Desktop.
Save joshleichtung/822900b34d0d5fa0eb298f1e8656df60 to your computer and use it in GitHub Desktop.
Sample podfile for react-native-maps
# 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 'make_maps_work' 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: '../node_modules/react-native-maps'
pod 'react-native-google-maps', path: '../node_modules/react-native-maps' # 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