BlueWallet/blue_modules/environment.js
Marcos Rodriguez Vélez 050a8ed8e0 WIP
2021-06-16 02:13:13 -04:00

9 lines
337 B
JavaScript

import { getSystemName, isTablet, getDeviceType } from 'react-native-device-info';
const isMacCatalina = getSystemName() === 'Mac OS X';
module.exports.isMacCatalina = isMacCatalina;
module.exports.isDesktop = getDeviceType() === 'Desktop';
module.exports.isHandset = getDeviceType() === 'Handset';
module.exports.isTablet = isTablet;