appActions.js 666 Bytes
'use strict';

import ReactNative from 'react-native';

const {
	SET_PLATFORM,
    SET_HOST,
	SET_SINGLE_API_HOST,
	SET_LIVE_API_HOST,
} = require('../../constants/actionTypes').default;

export function setPlatform(platform) {
    return {
        type: SET_PLATFORM,
        payload: platform
    };
}

export function setHost(host) {
    return {
        type: SET_HOST,
        payload: host
    };
}

export function setSingleApiHost(singleApiHost) {
    return {
        type: SET_SINGLE_API_HOST,
        payload: singleApiHost
    };
}

export function setliveHost(liveHost) {
    return {
        type: SET_LIVE_API_HOST,
        payload: liveHost
    };
}