facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.27k stars 24.35k forks source link

Question: Animation and pangesture after intergrate React Native with exists swift app #25888

Closed tranty9597 closed 5 years ago

tranty9597 commented 5 years ago

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:

Simulator Screen Shot - iPhone X - 2019-07-31 at 17 25 08

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!

react-native-bot commented 5 years ago

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

👉 Click here if you want to report a reproducible bug or regression in React Native.