expo-brightness
Version:
Provides an API to get and set screen brightness.
10 lines (6 loc) • 372 B
text/typescript
import { ConfigPlugin, AndroidConfig, createRunOncePlugin } from 'expo/config-plugins';
const pkg = require('expo-brightness/package.json');
const withBrightness: ConfigPlugin = (config) => {
return AndroidConfig.Permissions.withPermissions(config, ['android.permission.WRITE_SETTINGS']);
};
export default createRunOncePlugin(withBrightness, pkg.name, pkg.version);