Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

actions.native.js 931B

12345678910111213141516171819202122232425262728
  1. // @flow
  2. import { SET_TILE_VIEW_DIMENSIONS } from './actionTypes';
  3. export * from './actions.any';
  4. /**
  5. * Sets the dimensions of the tile view grid. The action is only partially implemented on native as not all
  6. * of the values are currently used. Check the description of {@link SET_TILE_VIEW_DIMENSIONS} for the full set
  7. * of properties.
  8. *
  9. * @param {Object} dimensions - The tile view dimensions.
  10. * @param {Object} thumbnailSize - The size of an individual video thumbnail.
  11. * @param {number} thumbnailSize.height - The height of an individual video thumbnail.
  12. * @param {number} thumbnailSize.width - The width of an individual video thumbnail.
  13. * @returns {{
  14. * type: SET_TILE_VIEW_DIMENSIONS,
  15. * dimensions: Object
  16. * }}
  17. */
  18. export function setTileViewDimensions({ thumbnailSize }: Object) {
  19. return {
  20. type: SET_TILE_VIEW_DIMENSIONS,
  21. dimensions: {
  22. thumbnailSize
  23. }
  24. };
  25. }