O'Reilly logo

React Native By Example by Richard Kho

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

NavigatorIOS and App component

Now, let's create an App component using an App.js file. Create this within the app folder of your project:

This component should contain logic similar to what we had in index.ios.js previously--we will replace the index.ios.js file with a NavigatorIOS component shortly.

Your new App component should be a reflection of the index.ios.js file you wrote earlier in this chapter, except that it should import and use the graphMethods file instead of the component-specific _getFeed method.

Once you have completed this task, refer to my version:

// Friends/app/App.js import React, { Component } from 'react'; import ...

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