Skip to content

Commit 3c3f83e

Browse files
alexExilz
authored andcommitted
fix remoteErrorView render
1 parent 073e47b commit 3c3f83e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HTML.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ export default class HTML extends PureComponent {
486486
render () {
487487
const { allowFontScaling, customWrapper, remoteLoadingView, remoteErrorView } = this.props;
488488
const { RNNodes, loadingRemoteURL, errorLoadingRemoteURL } = this.state;
489-
if (!RNNodes && !loadingRemoteURL) {
490-
return false;
489+
if (!RNNodes && !loadingRemoteURL && !errorLoadingRemoteURL) {
490+
return null;
491491
} else if (loadingRemoteURL) {
492492
return remoteLoadingView ?
493493
remoteLoadingView(this.props, this.state) :

0 commit comments

Comments
 (0)