@lod/react-screen-media
v1.0.1
Published
Handles showing media based on device display and media queries
Downloads
1
Readme
react-screen-media
Handles showing media based on device display and media queries
> 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')
}} />