Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

React native screen brightness

// yarn add react-native-screen-brightness

import ScreenBrightness from 'react-native-screen-brightness'; 
ScreenBrightness.setBrightness(0.5); // between 0 and 1
ScreenBrightness.getBrightness().then(brightness => {
	console.log('brightness', brightness);
});
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #React #native #screen #brightness
ADD COMMENT
Topic
Name
9+8 =