fix add notebook dialog close animation

This commit is contained in:
ammarahm-ed
2021-10-26 11:04:49 +05:00
parent ec8ccfe093
commit bfa623fd6a

View File

@@ -88,13 +88,6 @@ export class AddNotebookDialog extends React.Component {
this.description = null; this.description = null;
this.currentInputValue = null; this.currentInputValue = null;
this.id = null; this.id = null;
this.setState({
visible: false,
topics: [],
descFocused: false,
titleFocused: false,
editTopic: false
});
}; };
onDelete = index => { onDelete = index => {
@@ -269,10 +262,13 @@ export class AddNotebookDialog extends React.Component {
}} }}
fwdRef={this.actionSheetRef} fwdRef={this.actionSheetRef}
onClose={() => { onClose={() => {
console.log('closing now');
this.close(); this.close();
this.setState({ this.setState({
visible: false visible: false,
topics: [],
descFocused: false,
titleFocused: false,
editTopic: false
}); });
}} }}
statusBarTranslucent={false} statusBarTranslucent={false}