This file contains hidden or 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 Reactotron from 'reactotron-react-native'; | |
import { reactotronRedux } from 'reactotron-redux'; | |
import reactotronSaga from 'reactotron-redux-saga'; | |
declare global { | |
interface Console { | |
tron: any; | |
} | |
} |
This file contains hidden or 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 { createReducer, createActions } from 'reduxsauce'; | |
import Immutable from 'seamless-immutable'; | |
const { Types, Creators } = createActions({ | |
signInRequest: ['email', 'password'], | |
}); | |
export const AuthTypes = Types; | |
export default Creators; |
This file contains hidden or 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 { combineReducers } from 'redux'; | |
import { reducer as auth } from './auth/ducks'; | |
export default combineReducers({ | |
auth, | |
}); |
This file contains hidden or 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 AsyncStorage from '@react-native-async-storage/async-storage'; | |
import { persistReducer } from 'redux-persist'; | |
export default (reducers: any) => { | |
const persistedReducer = persistReducer( | |
{ | |
key: 'redux-with-asyncstorage', | |
storage: AsyncStorage, | |
blacklist: [], | |
}, |
This file contains hidden or 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 { Provider } from 'react-redux'; | |
import { PersistGate } from 'redux-persist/integration/react'; | |
import { store, persistor } from './store'; | |
import Routes from './routes'; | |
import './config/ReactotronConfig'; |
This file contains hidden or 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 Index from './src'; | |
const App = () => ( | |
<Index /> | |
); | |
export default App; |
This file contains hidden or 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
{ | |
"editor.formatOnPaste": true, | |
"editor.rulers": [ | |
80, | |
120 | |
], | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": true, | |
}, | |
"eslint.packageManager": "npm", |