April 2017
Intermediate to advanced
414 pages
8h 14m
English
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 ...Read now
Unlock full access