Skip to content

Commit

Permalink
fix(WKWebview): Update webview property when allowsBackForwardNavigat…
Browse files Browse the repository at this point in the history
…ionGestures prop changes (#173)
  • Loading branch information
ccorcos authored and Titozzz committed Jan 11, 2019
1 parent ac406bf commit 4bc1dc2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ios/RNCWKWebView.m
Expand Up @@ -125,6 +125,13 @@ - (void)didMoveToWindow
}
}

// Update webview property when the component prop changes.
- (void)setAllowsBackForwardNavigationGestures:(BOOL)allowsBackForwardNavigationGestures {
_allowsBackForwardNavigationGestures = allowsBackForwardNavigationGestures;
_webView.allowsBackForwardNavigationGestures = _allowsBackForwardNavigationGestures;
}


- (void)removeFromSuperview
{
if (_webView) {
Expand Down

0 comments on commit 4bc1dc2

Please sign in to comment.