Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

focus title input when on notebook dialog open

ammarahm-ed437f7ade9a98
diff --git a/apps/mobile/src/components/AddNotebookDialog/index.js b/apps/mobile/src/components/AddNotebookDialog/index.js
index 22033a1e3..2b9f42cf6 100644
--- a/apps/mobile/src/components/AddNotebookDialog/index.js
+++ b/apps/mobile/src/components/AddNotebookDialog/index.js
@@ -205,6 +205,11 @@ export class AddNotebookDialog extends React.Component {
transparent={true}
animated
animationType="fade"
+ onShow={() => {
+ setTimeout(() => {
+ this.titleRef.focus();
+ }, 300);
+ }}
onRequestClose={this.close}>
<KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'padding' : null}