BlueWallet/blue_modules/environment.ts

7 lines
225 B
TypeScript
Raw Normal View History

import { isTablet, getDeviceType } from 'react-native-device-info';
2023-03-29 21:04:18 -04:00
const isDesktop: boolean = getDeviceType() === 'Desktop';
export const isHandset: boolean = getDeviceType() === 'Handset';
export { isDesktop, isTablet };