Skip to content

diegomedina248/Pokedex

Repository files navigation

Overview

This is a sample React Native project that uses the latest React features, such as hooks.

Prerequisites

Installation

  • Clone Project
  • Create an .env file using the contents of the .env.sample
  • run npm install

Base dependencies

Project structure

All application code is located inside src:

  • actions: This folder contains all actions that can be dispatched to redux.
  • assets: Asset folder to store all images, vectors, etc.
  • components: Folder that contains all the components of the application.
    • common: Folder to store any common component that you use through the app (such as a generic button, textfields, etc).
    • navigation: Folder to store the navigation structure of the app.
    • MyComponent: Each component should be stored inside it's own folder, and inside it a file for its code and a separate one for the styles. Then, the index.js is only used to export the final component that will be used on the app.
      • MyComponent.js
      • styles.js
      • index.js
  • controllers: Folder to store all your network and storage logic (you should have one controller per resource).
  • helpers: Folder to store any kind of helper that you have.
  • hooks: Folder to store any custom hooks used.
  • localization: Store all the static strings used in the application.
  • reducers: This folder should have all your reducers, and expose the combined result using its index.js
  • selectors: Folder to store your selectors for each reducer.

Styleguide

This app follows Airbnb's styleguide with a few exceptions that you can find on the .eslintrc.json