BlueWallet/blue_modules/environment.ts
2024-05-05 18:57:41 +01:00

7 lines
225 B
TypeScript

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