iOS: Fixes #3607: keyboards won't cover last line of note (#4794)

pull/4804/head
Jessica Wu 2021-04-01 11:32:03 -07:00 committed by GitHub
parent 75eea7b87c
commit 829a245858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1141,6 +1141,9 @@ class NoteScreenComponent extends BaseScreenComponent {
keyboardAppearance={theme.keyboardAppearance}
placeholder={_('Add body')}
placeholderTextColor={theme.colorFaded}
// need some extra padding for iOS so that the keyboard won't cover last line of the note
// see https://github.com/laurent22/joplin/issues/3607
paddingBottom={ Platform.OS === 'ios' ? 40 : 0}
/>
);
}