2019-08-10 07:55:12 +01:00
|
|
|
import Constants from 'constants'; // eslint-disable-line node/no-deprecated-api
|
2019-07-09 01:54:32 +01:00
|
|
|
|
2019-08-10 07:55:12 +01:00
|
|
|
export const doPushDrawerStack = (routeName, params) => dispatch =>
|
2019-07-09 01:54:32 +01:00
|
|
|
dispatch({
|
|
|
|
type: Constants.ACTION_PUSH_DRAWER_STACK,
|
2019-08-10 07:55:12 +01:00
|
|
|
data: { routeName, params },
|
2019-07-09 01:54:32 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
export const doPopDrawerStack = () => dispatch =>
|
|
|
|
dispatch({
|
|
|
|
type: Constants.ACTION_POP_DRAWER_STACK,
|
|
|
|
});
|
|
|
|
|
2020-01-16 22:00:34 +01:00
|
|
|
export const doSetPlayerVisible = (visible, uri) => dispatch =>
|
2019-07-09 01:54:32 +01:00
|
|
|
dispatch({
|
|
|
|
type: Constants.ACTION_SET_PLAYER_VISIBLE,
|
2020-01-16 22:00:34 +01:00
|
|
|
data: { visible, uri },
|
2019-07-09 01:54:32 +01:00
|
|
|
});
|