Rocket.Chat.ReactNative/app/utils/deviceInfo.js

8 lines
225 B
JavaScript

import DeviceInfo from 'react-native-device-info';
export default {
isNotch: () => DeviceInfo.getModel() === 'iPhone X',
getBrand: () => DeviceInfo.getBrand(),
getReadableVersion: () => DeviceInfo.getReadableVersion()
};