@semiorbit/is-iphonex

Checks if iPhone has a notch (iPhoneX or later...)


Keywords
notch, iphone, ios, iPhoneX
License
MIT
Install
npm install @semiorbit/is-iphonex@1.0.2

Documentation

Semiorbit isIphoneX

Detect if device is an iphone(X, or later) with a notch.

Install

npm i @semiorbit/is-iphonex

Usage

import React from 'react';
import isIphoneX from '@semiorbit/is-iphonex';

const Test = props => {

    return (
        <div className={isPhoneX ? styles.ContainerX : styles.Container}>
            My Componenet
        </div>
    );
    
};

export default Test;

License

MIT