Allow up to 10 images in share intent (#11132)

This commit is contained in:
Samuel Newman
2026-07-14 16:14:11 +03:00
committed by GitHub
parent 4778142ee8
commit 30e862bc26
2 changed files with 7 additions and 10 deletions
@@ -15,6 +15,7 @@ import java.io.FileOutputStream
import java.net.URLEncoder
private const val TAG = "ExpoReceiveAndroidIntents"
private const val MAX_IMAGES = 10
enum class AttachmentType {
IMAGE,
@@ -100,12 +101,12 @@ class ExpoReceiveAndroidIntentsModule : Module() {
intent
.getParcelableArrayListExtra(Intent.EXTRA_STREAM, Uri::class.java)
?.filterIsInstance<Uri>()
?.take(4)
?.take(MAX_IMAGES)
} else {
intent
.getParcelableArrayListExtra<Uri>(Intent.EXTRA_STREAM)
?.filterIsInstance<Uri>()
?.take(4)
?.take(MAX_IMAGES)
}
val text = intent.getStringExtra(Intent.EXTRA_TEXT)