react-native-gizwits-android-app-install
v0.0.4-google-empty
Published
支持安卓查询安装其他应用权限
Downloads
14
Maintainers
Readme
react-native-gizwits-android-app-install
React Native 插件,查询是否可以在应用内安装其他应用,以及打开其他这个权限的系统设置页面
Installation
Add it to your android project
npm install react-native-gizwits-android-app-install --save
Install the native dependencies
Use react-native link to install native dependencies automatically:
react-native link react-native-gizwits-android-app-install
or do it manually as described here.
Example usage
import InstallManager from 'react-native-gizwits-android-app-install';
查询权限
const res = await InstallManager.hasInstallPermission(); // res: true/false
打开权限页面
InstallManager.openInstallPermissionPage();