Skip to content

Mirodil/react-native-screen-brightness

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-screen-brightness

Access and update the system brightness on a device.

Installation guide in progress

Example

import {NativeModules} from 'react-native';
var {SystemBrightness} = NativeModules;

SystemBrightness.setBrightness(0.5) // between 0 and 1

SystemBrightness.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 69.6%
  • Objective-C 30.4%