Przeglądaj źródła

fix issue mPermissionsModule.requestPermission

Mohamed Anouar KOTTI 8 lat temu
rodzic
commit
9cbce38c03

+ 2
- 1
android/src/main/java/com/joshblour/reactnativepermissions/ReactNativePermissionsModule.java Wyświetl plik

@@ -93,7 +93,8 @@ public class ReactNativePermissionsModule extends ReactContextBaseJavaModule {
93 93
         // NOOP
94 94
       }
95 95
     };
96
-    mPermissionsModule.requestPermission(permission, resolve, reject);
96
+    
97
+    mPermissionsModule.requestPermission(permission, new PromiseImpl(resolve, reject));
97 98
   }
98 99
 
99 100