Skip to content

Commit a3aa63f

Browse files
authored
Stop returning null when visible changes (#84)
Returning null wipes out the modal component, if the state changes too quickly this causes the modal to get stuck on the screen even between reloads. Better to let the modal handles its own visibility change.
1 parent 5bdc8f2 commit a3aa63f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ export default class Spinner extends React.PureComponent {
136136
}
137137

138138
_renderSpinner() {
139-
if (!this.state.visible) return null;
140-
141139
const spinner = (
142140
<View
143141
style={[styles.container, { backgroundColor: this.props.overlayColor }]}

0 commit comments

Comments
 (0)