2018-09-19 14:18:32 +00:00
|
|
|
import DeviceInfo from 'react-native-device-info';
|
|
|
|
|
2018-09-26 13:56:36 +00:00
|
|
|
const NOTCH_DEVICES = ['iPhone X', 'iPhone XS', 'iPhone XS Max', 'iPhone XR'];
|
|
|
|
|
2018-09-19 14:18:32 +00:00
|
|
|
export default {
|
2018-09-26 13:56:36 +00:00
|
|
|
isNotch: () => NOTCH_DEVICES.includes(DeviceInfo.getModel()),
|
2018-09-19 14:18:32 +00:00
|
|
|
getBrand: () => DeviceInfo.getBrand(),
|
|
|
|
getReadableVersion: () => DeviceInfo.getReadableVersion()
|
|
|
|
};
|