Skip to content

Commit 883df49

Browse files
committed
shouldShowRequestPermissionRationale is not exposed
1 parent ba0b274 commit 883df49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.android.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @flow
22

3-
import { AsyncStorage, PermissionsAndroid } from 'react-native'
3+
import { AsyncStorage, NativeModules, PermissionsAndroid } from 'react-native'
44

55
const permissionTypes = {
66
location: PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,
@@ -52,7 +52,7 @@ class ReactNativePermissions {
5252

5353
return getDidAskOnce(permission).then(didAsk => {
5454
if (didAsk) {
55-
return PermissionsAndroid.shouldShowRequestPermissionRationale(
55+
return NativeModules.PermissionsAndroid.shouldShowRequestPermissionRationale(
5656
androidPermission,
5757
).then(shouldShow => (shouldShow ? 'denied' : 'restricted'))
5858
}

0 commit comments

Comments
 (0)