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

@@ -59,13 +59,13 @@ export class AddTopicDialog extends React.Component {
render() {
const {visible, titleFocused} = this.state;
const {colors, toEdit} = this.props;
if (!visible) return null;
return (
<BaseDialog
onShow={() => {
this.titleRef.current?.focus();
}}
visible={visible}
visible={true}
onRequestClose={this.close}>
<View
style={{