mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
focus title input when on notebook dialog open
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user