settingActions.js 569 Bytes
'use strict';

import {Actions} from 'react-native-router-flux';
import HomeService from '../../services/HomeService';
// import timeago from 'timeago.js';

const {

    SETTING_SAVE_REQUEST,
    SETTING_SAVE_SUCCESS,
    SETTING_SAVE_FAILURE,

} = require('../../constants/actionTypes').default;

export function saveRequest() {
    return {
        type: SETTING_SAVE_REQUEST,
    };
}

export function saveSuccess() {
    return {
        type: SETTING_SAVE_SUCCESS,
    };
}

export function saveFailue() {
    return {
        type: SETTING_SAVE_FAILURE,
    };
}