forked from osdio/noder-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathActionTypes.js
More file actions
40 lines (31 loc) · 1.32 KB
/
ActionTypes.js
File metadata and controls
40 lines (31 loc) · 1.32 KB
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
// Home
export const OPEN_LOGIN_MODAL = 'OPEN_LOGIN_MODAL';
export const CLOSE_LOGIN_MODAL = 'CLOSE_LOGIN_MODAL';
export const UPDATE_TAB = 'UPDATE_TAB';
// user
export const CHECK_TOKEN = 'CHECK_TOKEN';
export const GET_USER_FROM_STORAGE = 'GET_USER_FROM_STORAGE';
export const UPDATE_CLIENT_USER_INFO = 'UPDATE_CLIENT_USER_INFO';
export const LOGOUT = 'LOGOUT';
export const GET_USER_INFO = 'GET_USER_INFO';
export const CLEAR = "CLEAR";
// utils
export const TOAST = 'TOAST';
export const OPEN_TOAST = 'OPEN_TOAST';
export const CLOSE_TOAST = 'CLOSE_TOAST';
// message
export const GET_UNREAD_MESSAGE_COUNT = 'GET_UNREAD_MESSAGE_COUNT';
export const MARK_AS_READ = 'MARK_AS_READ';
export const GET_MESSAGES_LIST = 'GET_MESSAGES_LIST';
// topic
export const GET_TOPICS_FROM_STORAGE = 'GET_TOPICS_FROM_STORAGE';
export const GET_TOPICS_BY_TAB = 'GET_TOPICS_BY_TAB';
export const UPDATE_TOPICS_BY_TAB = 'UPDATE_TOPICS_BY_TAB';
export const GET_TOPIC_BY_ID = 'GET_TOPIC_BY_ID';
export const REMOVE_TOPIC_CACHE_BY_ID = 'REMOVE_TOPIC_CACHE_BY_ID';
export const REPLY_TOPIC_BY_ID = 'REPLY_TOPIC_BY_ID';
export const UP_REPLY = 'UP_REPLY';
export const PUBLISH = 'PUBLISH';
// middleware
export const SYNC_REDUCER_TO_ASYNC_STORAGE = 'SYNC_REDUCER_TO_ASYNC_STORAGE';
export const GET_REDUCER_FROM_ASYNC_STORAGE = 'GET_REDUCER_FROM_ASYNC_STORAGE';