# react-native-screen-brightness

> Screen brightness module for iOS & Android on React Native

Latest version **2.0.0-alpha** (published 2019-12-26) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2.0.0-alpha |
| Published | 2019-12-26 |
| First published | 2016-02-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 79.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Atticus White |
| Maintainers | atticoos |

## Links

- npm: https://www.npmjs.com/package/react-native-screen-brightness
- npm.io page: https://npm.io/package/react-native-screen-brightness

## Recent versions

- 2.0.0-alpha (latest) — 2019-12-26
- 1.0.1 — 2019-10-14
- 1.0.0 — 2019-07-17
- 0.3.2 — 2017-11-17
- 0.3.1 — 2017-09-11
- 0.1.0 — 2016-02-18

## README

# react-native-screen-brightness

Access and update the system brightness on a device.

## React Native compatibility
|         React Native version          |         Compatible `react-native-screen-brightness` version   |
| :------------------: | :------------------: |
| v0.60+ | v2.x |
| v0.27 - v0.59 | v1.x |

## Install

Install with [yarn](https://yarnpkg.com) or [npm](https://www.npmjs.com).

```shell
yarn add react-native-screen-brightness
```

```shell
npm i --save react-native-screen-brightness
```

## Example

```js
import ScreenBrightness from 'react-native-screen-brightness';

ScreenBrightness.setBrightness(0.5); // between 0 and 1

ScreenBrightness.getBrightness().then(brightness => {
  console.log('brightness', brightness);
});
```

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