# react-native-px2dp

> pixels convert to density-independent pixels.

Latest version **1.1.0** (published 2017-04-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-px2dp
pnpm add react-native-px2dp
yarn add react-native-px2dp
bun add react-native-px2dp
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-04-20 |
| First published | 2017-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Author | unadlib |
| Maintainers | unadlib |
| Keywords | react-native, px2dp, react-native-px2dp |

## Links

- npm: https://www.npmjs.com/package/react-native-px2dp
- Repository: https://github.com/unadlib/react-native-px2dp
- Homepage: https://github.com/unadlib/react-native-px2dp#readme
- Issues: https://github.com/unadlib/react-native-px2dp/issues
- npm.io page: https://npm.io/package/react-native-px2dp

## Recent versions

- 1.1.0 (latest) — 2017-04-20
- 1.0.4 (release) — 2017-04-18
- 1.0.3 — 2017-04-18
- 1.0.2 — 2017-04-18
- 1.0.1 — 2017-04-18
- 1.0.0 — 2017-04-18

## README

# react-native-px2dp
pixels convert to density-independent pixels.

### Default UI Size
Default UI design size is based on 1280x720.

### Installation
```bash
npm install react-native-px2dp --save
```

### Usage
```javascript
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. 
}
```

---
_Source: https://npm.io/package/react-native-px2dp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
