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
422 stars 176 forks source link

Cannot read property 'getPhotos' of undefined #17

Closed shirleycharlin closed 7 years ago

shirleycharlin commented 8 years ago

Hi I was prompted this error message when I just npm install it a while ago. mind fixing it?

simulator screen shot jul 27 2016 11 45 56 am

jeanpan commented 8 years ago

@shirleycharlin, did you import the RCTCameraRoll.xcodeproj ? Please reference https://github.com/jeanpan/react-native-camera-roll-picker/blob/master/README.md#add-to-project

ghost commented 8 years ago

if use cocoapods, you must link RCTCameraRoll in Podfile

sibelius commented 7 years ago

@shirleycharlin can u close this?

shirleycharlin commented 7 years ago

@jeanpan I solved it!

@YJTanK thanks you!

so sorry that I forgot to revert back to this issue when I solved it. Thank you so much guys! :)

DeveloperAlly commented 7 years ago

I get this issue as well... how was it solved?

sibelius commented 7 years ago

U need to native link CameraRoll on iOS, check react native docs

DeveloperAlly commented 7 years ago

I had to do it manually. React-native link did not work. So for others... I did it by grabbing the RCTCameraRoll.xcodeproj from node_modules/react-native/libraries and putting it into my xcodeproject libraries then in build settings adding the RCTCameraRoll.a file

kaberibasu commented 7 years ago

@jeanpan I have imported the library and added RCTCameraRoll.a file in Build Phase/link binary with library, but the error still persists

AliZeynalov commented 6 years ago

@kaberibasu I also linked RCTCameraRoll.a and still keeps getting error. Did you manage to solve the problem?

Justinio99 commented 5 years ago

@YJTanK Hey! How can i link RCTCameraRoll in Podfile?

ghost commented 5 years ago

@Justinio99 sorry, I have been abandon from React Navtion for a long time. maybe you can see the offical docs in this link https://facebook.github.io/react-native/docs/cameraroll#docsNav