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ů.

utils.ts 432B

1234567891011121314151617181920
  1. import Platform from '../react/Platform';
  2. /**
  3. * Returns whether or not the current environment is a mobile device.
  4. *
  5. * @returns {boolean}
  6. */
  7. export function isMobileBrowser() {
  8. return Platform.OS === 'android' || Platform.OS === 'ios';
  9. }
  10. /**
  11. * Returns whether or not the current environment is an ios mobile device.
  12. *
  13. * @returns {boolean}
  14. */
  15. export function isIosMobileBrowser() {
  16. return Platform.OS === 'ios';
  17. }