Calvin-Huang / react-native-device-brightness

Screen brightness adjustment tool for ReactNative iOS and Android.
MIT License
49 stars 57 forks source link

Doesn't seem to work on Android #8

Open filiphosko opened 6 years ago

filiphosko commented 6 years ago

Hi, I can't get it to work. When I set the brightness inside my app, I can get the value I set it to right away, but it just doesn't dim the brightness. I tested it on Google Nexus 7 (Android 6.0.1) and RN version 0.44.0. Is there something I am missing?

deviceBrightness.setBrightnessLevel(0.2);
deviceBrightness.getBrightnessLevel()
  .then((brightness) => {
    console.log(brightness); // prints 0.2
  });
Calvin-Huang commented 6 years ago

Hi @filiphosko , Unfunfortunately, I don't have the devices for testing now. However, I'd like let you know that I will ask friends for help and try to reproduce and fix this issue ASAP. Thanks for reporting!