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

Viewing images

With images, it is important that they are getting saved to the imagePath attribute correctly, we want to be able to view them again. We will add another screen called NoteImageScreen that displays the image captured by the camera component. In the App/Components/ directory, create the NoteImageScreen.js file. Same as before, we are going to include this in the navigation as shown:

import NoteImageScreen from './App/Components/NoteImageScreen'; var NavigationBarRouteMapper = { LeftButton: function(route, navigator, index, navState) { switch (route.name) { ... case 'createNote': case 'noteLocations': case 'camera': case 'noteImage': ... } }, ... Title: function(route, navigator, index, navState) { switch (route.name) { ... case 'noteImage': ...

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