I am using CameraRoll component to get photos.But i am getting undefined from CameraRoll.js file
var RCTCameraRollManager = require('NativeModules').CameraRollManager;
Here RCTCameraRollManager gets 'undefined' In my scenario i am using CameraRoll component both for android and IOS.So how to update the node_modules file through command prompt
Since the later versions of React Native the Camera Roll manager is not required by default. To add it back, open Xcode. On the left side, drag the xcode file called RCTCameraRoll.xcodeproj into the Libraries folder. Then expand it and drag from the Product folder the file called libRCTCameraRoll.a to the "Build Phases" -> "Link Binary with libraries". More info here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With