1.0.2 • Published 6 years ago

react-native-screen-percent v1.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

react-native-screen-percent

React native package to obtain, in pixels, a percentage of the screen

Instalation

npm i react-native-screen-percent

Usage

Import

import { wp, hp } from 'react-native-screen-percent'

And use it this way:

const styles = StyleSheet.create({
  button: {
    width: wp(80),
    height: hp(5)
  }
})

Enjoy!