Accept text shared with image on Android (#6324)

This commit is contained in:
t0mm0
2022-07-29 18:41:48 +01:00
committed by GitHub
parent 8e4f19f3ea
commit cd4dc9528b

View File

@@ -167,6 +167,11 @@ public class ShareModule extends ReactContextBaseJavaModule {
map.putString("type", type);
map.putBoolean("isString", false);
items.pushMap(map);
map = Arguments.createMap();
map.putString("value", extra);
map.putBoolean("isString", true);
items.pushMap(map);
}
} else if (Intent.ACTION_SEND_MULTIPLE.equals(action)) {
ArrayList<Uri> uris = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM);