react-native-iphone-x-xr-xs-xsmax

1.2.1 • Public • Published

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

import { isIphoneX } from 'react-native-iphone-x-xr-xs-xsmax'
 
const HEADER_SIZE = isIphoneX() ? 130 : 100;

Package Sidebar

Install

npm i react-native-iphone-x-xr-xs-xsmax

Weekly Downloads

0

Version

1.2.1

License

MIT

Unpacked Size

1.62 kB

Total Files

3

Last publish

Collaborators

  • juand89