BlueWallet/blue_modules/environment.ts
2024-05-21 11:56:10 +01:00

8 lines
289 B
TypeScript

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