Explorar el Código

Better comment

bienur hace 7 años
padre
commit
ef3b88de16
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      index.android.js

+ 2
- 1
index.android.js Ver fichero

70
 
70
 
71
 		return RNPermissions.request(androidPermission)
71
 		return RNPermissions.request(androidPermission)
72
 			.then(res => {
72
 			.then(res => {
73
-				// For OS versions prior to Android M, request to native module resolve to boolean
73
+				// RNPermissions.request() to native module resolves to boolean
74
+				// rather than string if running on OS version prior to Android M 
74
 				if (typeof res === 'boolean') return res ? 'authorized' : 'denied';
75
 				if (typeof res === 'boolean') return res ? 'authorized' : 'denied';
75
 				return setDidAskOnce(permission)
76
 				return setDidAskOnce(permission)
76
 					.then(() => RESULTS[res])
77
 					.then(() => RESULTS[res])