Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Screen brightness module for iOS & Android on React Native

Notifications You must be signed in to change notification settings

Standard-Cognition/react-native-screen-brightness-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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);
});

About

Screen brightness module for iOS & Android on React Native

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 83.8%
  • Objective-C 10.3%
  • Ruby 5.2%
  • JavaScript 0.7%