# react-native-auto-responsive-screen

> This dependency is used to make responsive appearance in accordance with the dimensions of the design

Latest version **1.1.9** (published 2020-06-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-auto-responsive-screen
pnpm add react-native-auto-responsive-screen
yarn add react-native-auto-responsive-screen
bun add react-native-auto-responsive-screen
```

## 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.9 |
| Published | 2020-06-15 |
| First published | 2020-06-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Pratama Setya Aji |
| Maintainers | pratamasa |

## Links

- npm: https://www.npmjs.com/package/react-native-auto-responsive-screen
- Homepage: https://github.com/UADACID/react-native-auto-responsive-screen/blob/master/README.md
- npm.io page: https://npm.io/package/react-native-auto-responsive-screen

## Recent versions

- 1.1.9 (latest) — 2020-06-15
- 1.1.7 — 2020-06-15
- 1.1.6 — 2020-06-15
- 1.1.5 — 2020-06-15
- 1.1.4 — 2020-06-15
- 1.1.3 — 2020-06-12
- 1.0.3 — 2020-06-12
- 1.0.2 — 2020-06-12
- 1.0.1 — 2020-06-12
- 1.0.0 — 2020-06-12

## README

# react-native-auto-responsive-screen

This dependency is used to make responsive appearance in accordance with the dimensions of the design.

### Installation

```sh
$ cd project_name
$ yarn add react-native-auto-responsive-screen
```
or
```sh
$ cd project_name
$ npm install react-native-auto-responsive-screen
```
### before
![alt text](https://serving.photos.photobox.com/79744764dcccf702991bc4ffa5e81d3e30ea55a3f35065658b2a59a1b0f87f5383f519f8.jpg)

### after
![alt text](https://serving.photos.photobox.com/4185396168cceb1eb88c7473f4c7afd369799824b7389d7e555188b1e1f1816005a42c71.jpg)


You need init first, this step is required

```js
// file on root directory

import ResponsiveScreen from 'react-native-auto-responsive-screen'

/**
 * WIDTH AND HEIGHT BASE ON MOCKUP
 */
ResponsiveScreen.init(414, 852)

const App = () => {
  ...
};
```
next step

```js
// font example
import ResponsiveScreen from 'react-native-auto-responsive-screen'

<Text style={{
    color: '#FFFFFF',
    fontSize: ResponsiveScreen.fontSize(14)
}}>dummy text</Text>
```

```js
// component example
import ResponsiveScreen from 'react-native-auto-responsive-screen'

<TouchableOpacity style={{
    height: ResponsiveScreen.normalize(40),
    width: ResponsiveScreen.normalize(180),
    backgroundColor: '#CD3438',
    justifyContent: 'center',
    alignItems: 'center',
    borderRadius: ResponsiveScreen.normalize(5)
}}>
    ...
    
</TouchableOpacity>
```

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