BlueWallet/blue_modules/environment.ts

8 lines
289 B
TypeScript
Raw Normal View History

2024-05-20 10:54:13 +01:00
import { getDeviceType, isTablet as checkIsTablet } from 'react-native-device-info';
2024-05-15 08:05:42 -04:00
const isTablet: boolean = checkIsTablet();
2023-03-29 21:04:18 -04:00
const isDesktop: boolean = getDeviceType() === 'Desktop';
2024-05-14 19:02:08 -04:00
const isHandset: boolean = getDeviceType() === 'Handset';
2023-03-29 21:04:18 -04:00
2024-05-20 10:54:13 +01:00
export { isDesktop, isHandset, isTablet };