deviceActions.js
709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* # deviceActions.js
*
* What platform are we running on, ie ```ios``` or ```android```
*
* What version is the app?
*
*/
'use strict';
/**
* ## Imports
*
* The actions supported
*/
const {
SET_PLATFORM,
SET_VERSION,
SHOW_DOT
} = require('../../constants/actionTypes').default;
/**
* ## Set the platformState
*
*/
export function setPlatform(platform) {
return {
type: SET_PLATFORM,
payload: platform
};
}
/**
* ## set the version
*
*/
export function setVersion(version) {
return {
type: SET_VERSION,
payload: version
};
}
export function setDot(dot) {
return {
type: SHOW_DOT,
payload: dot
};
}