react-native-xiaomi-permissions
v0.2.0
Published
Native module for Xiaomi specific permissions
Downloads
35
Readme
react-native-xiaomi-permissions
Native module for Xiaomi specific permissions
Installation
npm install react-native-xiaomi-permissions
Usage
import { getPermissionsForDisplayOverlay, openDisplayOverlaySettings } from 'react-native-xiaomi-permissions';
// ...
useEffect(() => {
getPermissionsForDisplayOverlay().then(hasDisplayOverlayPermissions => {
if (!hasDisplayOverlayPermissions) {
openDisplayOverlaySettings();
}
})
}, [])
Made with create-react-native-library