lbry-react-native/src/redux/actions/drawer.js

19 lines
522 B
JavaScript
Raw Normal View History

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,
});
export const doSetPlayerVisible = (visible, uri) => dispatch =>
2019-07-09 01:54:32 +01:00
dispatch({
type: Constants.ACTION_SET_PLAYER_VISIBLE,
data: { visible, uri },
2019-07-09 01:54:32 +01:00
});