Initial commit.
This commit is contained in:
commit
1f90ca2575
63 changed files with 4059 additions and 0 deletions
33
stores/index.js
Normal file
33
stores/index.js
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/**
|
||||
* smashGG
|
||||
*
|
||||
* Handles communication with Smash.gg endpoints. Mostly promise based.
|
||||
*
|
||||
* @copyright Ryan McGrath 2018, unless the content belongs to Smash.gg, in which case,
|
||||
* it's them.
|
||||
*/
|
||||
|
||||
import {v4} from 'uuid';
|
||||
import moment from 'moment';
|
||||
import {create} from 'mobx-persist';
|
||||
import {AsyncStorage} from 'react-native';
|
||||
|
||||
import TournamentsListingStore from './TournamentsListingStore';
|
||||
import TournamentEventStore from './TournamentEventStore';
|
||||
import BookmarksStore from './BookmarksStore';
|
||||
import SettingsStore from './SettingsStore';
|
||||
|
||||
const hydrate = create({
|
||||
storage: AsyncStorage
|
||||
});
|
||||
|
||||
const stores = {
|
||||
Tournaments: TournamentsListingStore,
|
||||
TournamentEventStore: TournamentEventStore,
|
||||
Bookmarks: BookmarksStore,
|
||||
Settings: SettingsStore
|
||||
};
|
||||
|
||||
// Hydrate
|
||||
|
||||
export default stores;
|
||||
Reference in a new issue