react-native-get-pixel-dimensions
v1.0.0
Published
Get the width and height of device in pixels
Downloads
775
Readme
Install
$ npm install react-native-get-pixel-dimensions
# OR
$ yarn add react-native-get-pixel-dimensions
Usage
import getPixelDimensions from 'react-native-get-pixel-dimensions'
getPixelDimensions()
// {width: 750, height: 1334} // On iPhone 6
Contributing
Contributions are welcome!
- Fork it.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Or open up a issue.
License
Licensed under the MIT License.