You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

actions.native.js 391B

12345678910111213141516171819
  1. import { SET_CAR_MODE } from './actionTypes';
  2. export * from './actions.any';
  3. /**
  4. * Creates a (redux) action which tells whether we are in carmode.
  5. *
  6. * @param {boolean} enabled - Whether we are in carmode.
  7. * @returns {{
  8. * type: SET_CAR_MODE,
  9. * enabled: boolean
  10. * }}
  11. */
  12. export function setIsCarmode(enabled) {
  13. return {
  14. type: SET_CAR_MODE,
  15. enabled
  16. };
  17. }