react-native-iphone-x-xr-xs-xsmax
Version:
A small library that checks the size of the iPhone screen and determines if it is iPhone X, XR, XS or XS MAX
17 lines (11 loc) • 352 B
Markdown
# react-native-iphone-x-xr-xs-xsmax
A small library that checks the size of the iPhone screen and determines if it is iPhone X, XR, XS or XS MAX
## Install
```
$ npm install @juand89/react-native-iphone-x-xr-xs-xsmax
```
## Usage
```js
import { isIphoneX } from 'react-native-iphone-x-xr-xs-xsmax'
const HEADER_SIZE = isIphoneX() ? 130 : 100;
```