1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

iOS: Improved icon and fixed file attachement issue

This commit is contained in:
Laurent Cozic
2017-11-20 18:29:39 +00:00
parent c31c7a8a67
commit da7034ae08
24 changed files with 124 additions and 15 deletions

View File

@@ -352,7 +352,9 @@ class NoteScreenComponent extends BaseScreenComponent {
// The file attachement modules only work in Android >= 5 (Version 21)
// https://github.com/react-community/react-native-image-picker/issues/606
if (Platform.Version >= 21) {
let canAttachPicture = true;
if (Platform.OS === 'android' && Platform.Version < 21) canAttachPicture = false;
if (canAttachPicture) {
output.push({ title: _('Attach image'), onPress: () => { this.attachImage_onPress(); } });
output.push({ title: _('Attach any other file'), onPress: () => { this.attachFile_onPress(); } });
}