More bug fixes

This commit is contained in:
John Lyon-Smith
2018-04-29 14:56:39 -07:00
parent c403c43c1c
commit 7b20b18aeb
4 changed files with 59 additions and 77 deletions

View File

@@ -26,19 +26,6 @@ export const ensurePermissions = (
onSuccess,
onError
) => {
if (Platform.OS === "ios") {
if (onSuccess) {
onSuccess(
permissions.reduce(
(dict, permission) =>
(dict[permission] = PermissionsAndroid.RESULTS.GRANTED),
{}
)
)
}
return
}
PermissionsAndroid.requestMultiple(permissions, rationale)
.then((results) => {
if (