2022-09-14 19:10:01 +00:00
|
|
|
index 7a28702..77888fc 100644
|
|
|
|
--- a/node_modules/expo-image-picker/android/src/main/java/expo/modules/imagepicker/ImagePickerModule.kt
|
|
|
|
+++ b/node_modules/expo-image-picker/android/src/main/java/expo/modules/imagepicker/ImagePickerModule.kt
|
|
|
|
@@ -56,7 +56,7 @@ class ImagePickerModule : Module() {
|
|
|
|
|
|
|
|
AsyncFunction("launchCameraAsync") Coroutine { options: ImagePickerOptions ->
|
|
|
|
ensureTargetActivityIsAvailable(options)
|
|
|
|
- ensureCameraPermissionsAreGranted()
|
2022-09-15 14:00:43 +00:00
|
|
|
+ // ensureCameraPermissionsAreGranted() Expo permissions are a little different, in our case it's better to keep it ourselves.
|
2022-09-14 19:10:01 +00:00
|
|
|
|
|
|
|
val mediaFile = createOutputFile(context.cacheDir, options.mediaTypes.toFileExtension())
|
|
|
|
val uri = mediaFile.toContentUri(context)
|