Nefarious Pomegranate Magnate

    @semiorbit/is-iphonex

    1.0.2 • Public • Published

    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

    Install

    npm i @semiorbit/is-iphonex

    DownloadsWeekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    2.93 kB

    Total Files

    4

    Last publish

    Collaborators

    • ibrahimkhalil