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

Creating the entry point

The index file found at app/index.js will serve as the entry point into our application. Both the iOS and Android versions of Tasks will call upon it, and it's going to set up our Redux architecture. First, we'll import all the necessary dependencies. Don't worry if we haven't created any applicable files or folders for these items yet; we'll do so very shortly:

// TasksRedux/app/index.js 

import React from 'react'; 
import AppContainer from './containers/AppContainer'; 
import { createStore, applyMiddleware } from 'redux'; 
import { Provider } from 'react-redux'; 
import thunk from 'redux-thunk'; 
import listOfTasks from './reducers';  

Next, let's set up our store.

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