Calvin-Huang / react-native-device-brightness

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

Get brightness on Android #2

Closed stief510 closed 7 years ago

stief510 commented 7 years ago

Get brightness on Android returns -1

Calvin-Huang commented 7 years ago

Thanks! @stief510 However I have no Android device now. But I promise that it'll be fixed ASAP.

Calvin-Huang commented 7 years ago

Hi @stief510 According the Android document - BRIGHTNESS_OVERRIDE_NONE.

Default value -1 indicating that the brightness value is not overridden for this window and normal brightness policy should be used.

Returning -1 is correct behavior. But I think it should be documented to README. I'll add it up and try to figure out a better way to unify iOS and Android's behavior.