O'Reilly logo

Getting Started with React Native by Tom Bray, Ethan Holmes

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

Summary

In this chapter, you learned that even if React Native lacks a feature you need, you'll be able to find a Native Module that suits your needs. In our case, we need camera support for our note taking the application and we showed you how to install a great third-party module via npm. We created a new screen for our Camera component and wired it up to our note saving mechanism to store the path of the image that is captured. We then created a NoteImage screen to view the captured image and added a way to delete the images we captured.

Facebook exposes native device functionality in exactly the same way that react-native-camera does. If you're curious, you can take a look at the very simple vibration module that ships with React Native:

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