仅使用Cocoapods添加RCTCameraRoll



我本以为只有这个:

pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
'DevSupport',
'RCTText',
'RCTNetwork',
'RCTWebSocket',
'RCTAnimation',
'RCTCameraRoll'
]

我可以开始使用CameraRollAPI。但它看起来还不够。由于项目架构的限制,我无法手动链接任何二进制文件。

有没有办法使用CameraRoll?据我所知,像Animation这样的其他API是由react native自动包含的,所以这是一种方式。

添加

pod 'React-RCTCameraRoll', :path => '../node_modules/react-native/Libraries/CameraRoll'

到您的Podfile(RN>=0.60(

最新更新