1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Mobile: Improve performance of attaching images, especially large ones (#2945)

* Disable sending serialized data over the react-native bridge when attaching image or file

* Remove noData opt from DocumentPicker as it's only relevant for ImagePicker
This commit is contained in:
roman-r-m 2020-05-09 11:26:03 +01:00 committed by GitHub
parent 24a90036b7
commit 578f93fb90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -565,7 +565,7 @@ class NoteScreenComponent extends BaseScreenComponent {
}
async attachPhoto_onPress() {
const response = await this.showImagePicker({ mediaType: 'photo' });
const response = await this.showImagePicker({ mediaType: 'photo', noData: true });
await this.attachFile(response, 'image');
}