Skip to content

stu60610/react-native-screen-brightness

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 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 89.2%
  • Objective-C 10.8%