1.0.0 • Published 5 years ago

@juand89/react-native-iphone-x-xr-xs-xsmax v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

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 react-native-iphone-x-xr-xs-xsmax --save

Usage

import { isIphoneX } from 'react-native-iphone-x-xr-xs-xsmax'

const HEADER_SIZE = isIphoneX() ? 130 : 100;

TODO

  • Add a native module to check iPhone screen size