Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undefined ia not an object(evaluating RCTCameraRollManager.getPhotos)

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

like image 635
vasavi Avatar asked Nov 27 '25 21:11

vasavi


1 Answers

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.

like image 114
eyal83 Avatar answered Nov 29 '25 10:11

eyal83



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!