jeanpan / react-native-camera-roll-picker

📷 A React Native component providing images selection from camera roll
https://www.npmjs.com/package/react-native-camera-roll-picker
MIT License
423 stars 176 forks source link

undefined is not an object (evaluating 'RCTCameraRollManager.getPhotos) #47

Closed alainib closed 7 years ago

alainib commented 7 years ago

hello I try to get cameraroll and get this error on iphone 5s.

in xcode, libraries , I added RCTCameraRoll.xocde.proj then in "build phases" link binary with libraries i dropped the "libRCTCameraRoll.a"

the project build is ok but error on the iphone

undefined is not an object (evaluating 'RCTCameraRollManager.getPhotos)

I used the code in the demo

Any idea please ?

her a screenshot of xcode http://imgur.com/a/LQl8n

nkarman commented 7 years ago

Do you have any photos in your camera roll? I was getting this issue, then added photos to my camera roll (by saving photos from the iOS simulator's safari) and this issue went away. Hope this helps!

alainib commented 7 years ago

it was because my bad configuration of xocde import for this plugin. unfortunatly i don't now how i solve it. ( i try few time to import the plugin. I have pictures in the camera roll yes before. thanks for help

code-by commented 6 years ago

Have same issue with some photos in gallery. iOS. after adding libRCTCamera and libRCTCameraRoll (Project - General - Linked Frameworks and Libraries) all problems was fixed.