Skip to content

Instantly share code, notes, and snippets.

@voratham
Created February 13, 2018 05:24
Show Gist options
  • Save voratham/41d2f084a85d4d6dc999538b9b06a611 to your computer and use it in GitHub Desktop.
Save voratham/41d2f084a85d4d6dc999538b9b06a611 to your computer and use it in GitHub Desktop.
Podfile pod install สำหรับการตั้ง project บน react-native ที่ใช้บ่อย ๆ
# 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'
target 'taxiDriverApp' 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'
]
pod 'GooglePlaces'
pod 'GooglePlacePicker'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'GoogleMaps' # <~~ remove this line if you do not 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
pod 'react-native-camera', path: '../node_modules/react-native-camera'
pod 'react-native-fetch-blob',
:path => '../node_modules/react-native-fetch-blob'
# when not using frameworks we can do this instead of including the source files in our project (1/4):
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