Necessary Pigeonholing Mechanism

    @lod/react-screen-media
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    react-screen-media

    Handles showing media based on device display and media queries

    Build Status

    > npm install --save @lod/react-screen-media
    import {Image, Resolution} from '@lod/react-screen-media';
     
    <Image images={{
        [Resolution.X2_00]: require('./assets/images/img-2x.png'),
        [Resolution.X1_00]: require('./assets/images/img-1x.png')
    }} />
    <Image images={{
        '2.0': require('./assets/images/img-2x.png'),
        '1.5': require('./assets/images/img-1_5x.png')
    }} />

    Install

    npm i @lod/react-screen-media

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    12.3 kB

    Total Files

    18

    Last publish

    Collaborators

    • anigenero
    • jhorlin