Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
pod 'TwilioVideo', '~> 2.10'
pod 'YogaKit'
pod 'RxSwift', '~> 5'
pod 'RxCocoa', '~> 5'
pod 'FontAwesome.swift'
pod 'SwiftMessages'
pod 'Alamofire', '~> 4'
pod "PromiseKit", "~> 6.8"
pod 'SwiftyJSON', '~> 4.0'
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge', # Include this for RN >= 0.47
'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
'RCTText',
'RCTImage',
'RCTNetwork',
'RCTWebSocket', # Needed for debugging
'RCTAnimation', # Needed for FlatList and animations running on native UI thread
]
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
target 'adamo-sampleTests' do
inherit! :search_paths
Pods for testing
end
target 'adamo-sampleUITests' do
inherit! :search_paths
Pods for testing
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "Yoga"
target.remove_from_project
end
end
end
I've followed this doc https://facebook.github.io/react-native/docs/integration-with-existing-apps to intergrate RN on my app. The RN view works fine but animation and pangesture not work. Behavior:
Hear is my Podfile
source 'https://github.com/CocoaPods/Specs.git' target 'adamo-sample' do
Comment the next line if you don't want to use dynamic frameworks
use_frameworks! pod 'TwilioVideo', '~> 2.10' pod 'YogaKit' pod 'RxSwift', '~> 5' pod 'RxCocoa', '~> 5' pod 'FontAwesome.swift' pod 'SwiftMessages' pod 'Alamofire', '~> 4' pod "PromiseKit", "~> 6.8" pod 'SwiftyJSON', '~> 4.0'
pod 'React', :path => '../node_modules/react-native', :subspecs => [ 'Core', 'CxxBridge', # Include this for RN >= 0.47 'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43 'RCTText', 'RCTImage', 'RCTNetwork', 'RCTWebSocket', # Needed for debugging 'RCTAnimation', # Needed for FlatList and animations running on native UI thread ] pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' target 'adamo-sampleTests' do inherit! :search_paths
Pods for testing
end
target 'adamo-sampleUITests' do inherit! :search_paths
Pods for testing
end
end
post_install do |installer| installer.pods_project.targets.each do |target| if target.name == "Yoga" target.remove_from_project end end end
Thank all!