fix focus on dialog open

This commit is contained in:
ammarahm-ed
2020-03-02 12:12:23 +05:00
parent 437f7ade9a
commit 17618d6d65
2 changed files with 7 additions and 4 deletions

View File

@@ -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}>
<KeyboardAvoidingView