我必须使用react-native-permissions中的多个请求
示例代码
requestMultiple(bluetoothPermission)
.then((result) => {
if (result[bluetoothPermissionResult] === RESULTS.GRANTED || result[bluetoothPermissionResult] === RESULTS.UNAVAILABLE) {
//so something
} else if (result[bluetoothPermissionResult] === RESULTS.BLOCKED || result[bluetoothPermissionResult] === RESULTS.DENIED) {
//do something
}
})
.catch((error) => {})