This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const USER_SET = 'USER_SET'; | |
const USER_SET_STATE = 'USER_SET_STATE'; | |
const initialState = { | |
user: {}, | |
loading: false | |
}; | |
export default (state = initialState, action = {}) => { | |
switch (action.type) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStore, applyMiddleware, combineReducers, compose } from 'redux'; | |
import { createReactNavigationReduxMiddleware, createNavigationReducer, reduxifyNavigator } from 'react-navigation-redux-helpers'; | |
import { connect } from 'react-redux'; | |
// Middlewares | |
import createSagaMiddleware from 'redux-saga'; | |
// Saga's | |
import user from './reducers/sagas/user' | |
import schedule from './reducers/sagas/schedule' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Dimensions, AsyncStorage } from 'react-native'; | |
import { Provider } from 'react-redux'; | |
import { call, put, takeEvery, select } from 'redux-saga/effects' | |
// Navigation | |
import { createStackNavigator, createDrawerNavigator, DrawerActions } from 'react-navigation' | |
// Get store (redux) | |
import store from './store' |
NewerOlder