Skip to content

Commit

Permalink
DialogScreen - fix - remove caching (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
M-i-k-e-l authored and ethanshar committed Nov 12, 2019
1 parent 596ee30 commit 95b2de3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions demo/src/screens/componentScreens/DialogScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ export default class DialogScreen extends Component {
constructor(props) {
super(props);

this.content = {};

this.SCROLL_TYPE = {
NONE: 'none',
VERTICAL: 'vertical',
Expand Down Expand Up @@ -189,9 +187,6 @@ Scroll: ${scroll}`;

renderContent = () => {
const {scroll, showHeader} = this.state;
if (this.content[scroll + showHeader]) {
return this.content[scroll + showHeader];
}

let content;
switch (scroll) {
Expand All @@ -218,7 +213,6 @@ Scroll: ${scroll}`;
</View>
);

this.content[scroll + showHeader] = data;
return data;
};

Expand Down

0 comments on commit 95b2de3

Please sign in to comment.