Réagir la luminosité du dispositif de contrôle natif
npm i @adrianso/react-native-device-brightness
//write code as following
import DeviceBrightness from 'react-native-device-brightness';
// Setting brightness
DeviceBrightness.setBrightnessLevel(brightness);
// Getting brightness
const brightness = await DeviceBrightness.getBrightnessLevel();
console.log(brightness);
// Getting system brightness (Android only)
const brightness = await DeviceBrightness.getSystemBrightnessLevel();
console.log(brightness);
Bhagi Makwana