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 ...

Get React Native Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.