Skip to content

yinghang/react-native-screen-brightness

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 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 87.8%
  • Objective-C 12.2%