1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Mobile: Added placeholders for note title and body, and focus body by default for notes

This commit is contained in:
Laurent Cozic 2019-06-26 23:00:25 +01:00
parent 0a06aa6f9f
commit c4e21c2b6a

View File

@ -655,7 +655,7 @@ class NoteScreenComponent extends BaseScreenComponent {
}}
/>
} else {
const focusBody = !isNew && !!note.title;
const focusBody = !note.is_todo;//!isNew && !!note.title;
// Note: blurOnSubmit is necessary to get multiline to work.
// See https://github.com/facebook/react-native/issues/12717#issuecomment-327001997
@ -669,6 +669,7 @@ class NoteScreenComponent extends BaseScreenComponent {
onChangeText={(text) => this.body_changeText(text)}
blurOnSubmit={false}
selectionColor={theme.textSelectionColor}
placeholder={_('Add body')}
/>
);
}
@ -739,6 +740,7 @@ class NoteScreenComponent extends BaseScreenComponent {
value={note.title}
onChangeText={(text) => this.title_changeText(text)}
selectionColor={theme.textSelectionColor}
placeholder={_('Add title')}
/>
</View>
);