focus title input when on notebook dialog open

This commit is contained in:
ammarahm-ed
2020-03-02 12:10:13 +05:00
parent 65868d66a5
commit 437f7ade9a

View File

@@ -205,6 +205,11 @@ export class AddNotebookDialog extends React.Component {
transparent={true} transparent={true}
animated animated
animationType="fade" animationType="fade"
onShow={() => {
setTimeout(() => {
this.titleRef.focus();
}, 300);
}}
onRequestClose={this.close}> onRequestClose={this.close}>
<KeyboardAvoidingView <KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'padding' : null} behavior={Platform.OS === 'ios' ? 'padding' : null}