react-native – React Native摇动手势不起作用
发布时间:2020-12-15 20:30:14 所属栏目:百科 来源:网络整理
导读:将此pod添加到我的react-native项目(RN 0.42)后,摇动手势在iOS上不再起作用.除了在 xcode中构建它之外,我无法调试我的代码,这非常烦人.它确实减慢了开发速度,所以如果有人有解决方案,我们将不胜感激. source 'https://github.com/CocoaPods/Specs.git'platfo
将此pod添加到我的react-native项目(RN 0.42)后,摇动手势在iOS上不再起作用.除了在
xcode中构建它之外,我无法调试我的代码,这非常烦人.它确实减慢了开发速度,所以如果有人有解决方案,我们将不胜感激.
source 'https://github.com/CocoaPods/Specs.git' platform :ios,'8.0' use_frameworks! def available_pods project ‘rrnf’,'Debug' => :debug react_path = '../node_modules/react-native' yoga_path = File.join(react_path,'ReactCommon/yoga') pod 'React',path: react_path,:subspecs => [ 'Core','RCTActionSheet','RCTGeolocation','RCTImage','RCTLinkingIOS','RCTNetwork','RCTSettings','RCTText','RCTVibration','RCTWebSocket',] pod 'Yoga',:path => yoga_path [ 'Firebase','Firebase/Core','Firebase/Auth','Firebase/Storage','Firebase/Database','Firebase/RemoteConfig','Firebase/Messaging' ].each do |lib| pod lib end pod 'react-native-camera',path: '../node_modules/react-native-camera' end target 'rrnf' do available_pods end target 'rrnfTests' do available_pods end 解决方法
这个芒果解决了我的问题
How do i use the iOS shake gesture with react native? 将RCT_DEV = 0添加到预处理器宏确实修复了抖动手势.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |