O'Reilly logo

React Native - Building Mobile Apps with JavaScript by Vladimir Novick

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Retrieving and saving photos with CameraRoll API

Okay, so we've looked at the list of React Native APIs, and now it's time to get to more complicated, but cool APIs. We will begin it with tackling the CameraRoll API. This API is used to get access to local photo gallery/camera roll, to obtain photos from your device.

It's important to know that you should properly "link", as described in the beginning of the chapter, your CameraRoll prior to using it, because it uses native modules. Fortunately, we've already linked CameraRoll, but for a brief overview, let's recall what we've done:

We brought RCTCameraRoll.xcodeproj from node_modules/react-native/Libraries/CameraRoll into our Libraries group in XCode:

We configured our build phases by bringing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required