react-native-template-mario
Version:
react-native template to target multiple platforms.
25 lines (22 loc) • 606 B
text/typescript
/**
* Created by MeePwn
* https://github.com/maybewaityou
*
* description:
*
*/
import { actionCreator, actions, ActionsObservable, BATCH_ACTIONS, epicCreator, flowable, IAction, mutate, replace } from 'mario-meditation';
import { log, toString } from 'mario-utilities';
import { IError, IResponse } from '@task';
import { } from '../actions/index';
export default {
name: 'loader',
immutable: true,
initialState: {
show: false,
message: '',
},
reducers: {
config(state: any, payload: any) { return mutate(state, { show: payload.show, message: payload.message }); },
},
};