packages/skygear-core/lib/react-native/index.js
import container from '../index';
import {ReactNativePushContainer} from './push';
import {setStore} from '../store';
import reactNativeStore from './store';
import {DatabaseContainer} from '../database';
setStore(reactNativeStore);
container._store = reactNativeStore;
// Cache of DatabaseContainer will use the container store
// So we have to recreate the _db after the store is changed
container._db = new DatabaseContainer(container);
container._push = new ReactNativePushContainer(container);
export default container;