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.

utils.ts 433B

123456789101112131415161718192021
  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. }