Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3a64116

Browse files
authored
Fixes onLoad*, onError events not called from child component
If the child component also defines the same onload methods this component defines, then this component's events won't be called and thus the bar will not render.
1 parent 44176b7 commit 3a64116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/webview.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ class ProgressBarWebView extends React.PureComponent {
6767
<View style={styles.container}>
6868
{visible && <LoadingBar height={height} color={color} percent={percent}/>}
6969
<WebView
70+
{...this.props}
7071
ref={forwardedRef}
7172
onLoadStart={this._onLoadStart}
7273
onLoadEnd={this._onLoadEnd}
7374
onLoadProgress={this._onLoadProgress}
7475
onError={this._onError}
75-
{...this.props}
7676
/>
7777
</View>
7878
);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /