do not load dialogs on init in memory

This commit is contained in:
ammarahm-ed
2020-11-23 12:32:33 +05:00
parent 661794fd7e
commit 2ae6e48627
17 changed files with 216 additions and 200 deletions

View File

@@ -215,21 +215,6 @@ export class AddNotebookDialog extends React.Component {
topics: prevTopics,
});
this.currentInputValue = null;
/* if (prevTopics[this.prevIndex + 1] && forward) {
this.prevIndex = this.prevIndex + 1;
this.prevItem = prevTopics[this.prevIndex];
this.currentInputValue = this.prevItem;
this.topicInputRef.setNativeProps({
text: null,
});
this.topicInputRef.setNativeProps({
text: prevTopics[this.prevIndex],
});
this.setState({
editTopic:true
})
} else {} */
if (this.state.editTopic) {
this.topicInputRef.blur();
Keyboard.dismiss();
@@ -261,9 +246,10 @@ export class AddNotebookDialog extends React.Component {
visible,
topicInputFocused,
} = this.state;
if (!visible) return null;
return (
<Modal
visible={visible}
visible={true}
transparent={true}
animated
animationType={DDS.isTab ? 'fade' : 'slide'}