Home > Mobile > The React of Native PermissionsAndroid components how to avoid the continuous tip?
The React of Native PermissionsAndroid components how to avoid the continuous tip?
Time:09-27
let check1 granted1; Check1=await PermissionsAndroid. Check (PermissionsAndroid. PERMISSIONS. ACCESS_COARSE_LOCATION); if (! Check1) { Granted1=await PermissionsAndroid. Request (PermissionsAndroid. PERMISSIONS. ACCESS_COARSE_LOCATION, { Title: ' The message: 'whether open application network location permissions', ButtonNegative: 'NO', ButtonPositive: 'YES', }); }
Tip over 'whether open application network location permissions, point YES, native and prompted again
CodePudding user response:
Generated, the first is the permissions frame as the friendly prompt only (see hungry, taobao, etc., but the somebody else look better interface), if you don't like to look at what frameworks do, oneself change