O'Reilly logo

React Native Cookbook by Crysfel Villa, Stan Bershadskiy

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

Installing Redux and preparing our project

In this recipe, we will install Redux in an empty application, and we will define the main folder structure of our bookmarks application.

How to do it...

  1. We need to create our application using the React Native CLI. By running the following command, we will have our initial app:
    $ react-native init Bookmarks
    $ cd Bookmarks
    
  2. Once we have the initial app, we need to install Redux; we can do that by using npm or yarn. Feel free to use your favorite package manager:
    $ npm i --save redux
    $ npm i --save react-redux
    
  3. Now let's create the folder structure for our application. First, we need to create an src folder where we will have all our source code. Inside src, we will have components, containers, views, redux ...

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