A react native module to replace DeviceInfo.isIPhoneX_deprecated.
- 1.Run
npm i react-native-isiphonex-device --save
- or
yarn add react-native-isiphonex-device
- or
- 2.
import { isIPhoneX } from 'react-native-isiphonex-device'
Add react-native-isiphonex-device
to your js file.
import { isIPhoneX } from 'react-native-isiphonex-device'
Issues are welcome. Please add a screenshot of bug and code snippet. Quickest way to solve issue is to reproduce it on one of the examples.
Pull requests are welcome. If you want to change API or making something big better to create issue and discuss it first.
MIT Licensed