Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 529 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 529 Bytes

react-native-screen-brightness

Access and update the system brightness on a device.

Install

Install with yarn or npm.

yarn add react-native-screen-brightness
npm i --save react-native-screen-brightness

Example

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

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

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