Skip to content

unadlib/react-native-px2dp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-px2dp

pixels convert to density-independent pixels.

Default UI Size

Default UI design size is based on 1280x720.

Installation

npm install react-native-px2dp --save

Usage

import px,{px2dp} from 'react-native-px2dp';
const style = {
    width: 720 * px,//UI height size is 1280.
}
const otherStyle = {
    width: 720 * px2dp(480),//UI height size is 960. 
}

About

Pixels convert to density-independent pixels.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published