From c4e21c2b6ac86a87ecb4668fd7849eb644c0d716 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Wed, 26 Jun 2019 23:00:25 +0100 Subject: [PATCH] Mobile: Added placeholders for note title and body, and focus body by default for notes --- ReactNativeClient/lib/components/screens/note.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ReactNativeClient/lib/components/screens/note.js b/ReactNativeClient/lib/components/screens/note.js index 6aa74f8737..34a92b9dd9 100644 --- a/ReactNativeClient/lib/components/screens/note.js +++ b/ReactNativeClient/lib/components/screens/note.js @@ -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')} /> );