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

Remaining folder structure

The reducers folder is going to contain a single reducer file, which handles all the logic that modifies our application state.

The index.js file found within the app folder will handle our Redux setup and be rendered by the root index files for both iOS and Android.

What you'll have at our root index.ios.js and index.android.js files are the following:

// TasksRedux/index.js 

import Tasks from './app'; 
import { AppRegistry } from 'react-native'; 
 
AppRegistry.registerComponent('Tasks', () => Tasks); 

 

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