diff --git a/apps/mobile/src/components/AddNotebookDialog/index.js b/apps/mobile/src/components/AddNotebookDialog/index.js index 2b9f42cf6..8f0eb627a 100644 --- a/apps/mobile/src/components/AddNotebookDialog/index.js +++ b/apps/mobile/src/components/AddNotebookDialog/index.js @@ -206,9 +206,7 @@ export class AddNotebookDialog extends React.Component { animated animationType="fade" onShow={() => { - setTimeout(() => { - this.titleRef.focus(); - }, 300); + this.titleRef.focus(); }} onRequestClose={this.close}> { @@ -52,6 +53,9 @@ export class AddTopicDialog extends React.Component { animated animationType="fade" transparent={true} + onShow={() => { + this.titleRef.current?.focus(); + }} onRequestClose={() => { refs = []; this.close(); @@ -102,6 +106,7 @@ export class AddTopicDialog extends React.Component {