Calvin-Huang / react-native-device-brightness

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

Fix for android #3

Closed mumei closed 7 years ago

mumei commented 7 years ago

2

In android, "setBrightness" has to be set from 0 to 1 or -1 -1 will return the system default. Android has the system default value which is from 0 to 255 value. So, I added new function that can get system default.