Skip to content

Plugins

Raphael Morales edited this page Nov 30, 2017 · 10 revisions

React Navigation

Routers define the relationship between URIs, actions, and navigation state. Share navigation logic between mobile apps, web apps, and server rendering.

Install

yarn add react-navigation

ApiSauce

Talking to APIs doesn't have to be awkward anymore.

yarn add apisauce

Crie uma pasta /src/services/api.js e configure api.

import api from './services/api';

Redux

yarn add redux

React Redux

yarn add react-redux

Crie uma pasta chamada redux com store.js

Em index. js

import { Provider } from 'react-redux'; import store from 'redux/store';

Envolva o App

<Provider store={stpre}> <Routes /> </Provider>

Em /Redux crie /reducers

São as actions


Clone this wiki locally