BlueWallet/blue_modules/environment.ts
Marcos Rodriguez Velez 7b3b48e3b5
REF: isTablet
2024-05-15 08:05:42 -04:00

7 lines
289 B
TypeScript

import { isTablet as checkIsTablet, getDeviceType } from 'react-native-device-info';
const isTablet: boolean = checkIsTablet();
const isDesktop: boolean = getDeviceType() === 'Desktop';
const isHandset: boolean = getDeviceType() === 'Handset';
export { isDesktop, isTablet, isHandset };