Reputation: 1585
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
Upvotes: 3
Views: 2169
Reputation: 4033
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.
Upvotes: 8