react-native-battery-whitelist
Checks if any manufacturer-specific opt-in battery optimization whitelist is available for the current Android device. Shows battery saving whitelist screen if this is the case.
Usage
; { try const hasIntent = await BatteryWhitelist; if hasIntent await BatteryWhitelist; catch error console; }