fix(WKWebview): Update webview property when allowsBackForwardNavigationGestures prop changes (#173)

This commit is contained in:
Chet Corcos 2019-01-11 10:53:55 -08:00 committed by Thibault Malbranche
parent ac406bf66f
commit 4bc1dc20fd
1 changed files with 7 additions and 0 deletions

View File

@ -125,6 +125,13 @@ static NSString *const MessageHanderName = @"ReactNative";
}
}
// Update webview property when the component prop changes.
- (void)setAllowsBackForwardNavigationGestures:(BOOL)allowsBackForwardNavigationGestures {
_allowsBackForwardNavigationGestures = allowsBackForwardNavigationGestures;
_webView.allowsBackForwardNavigationGestures = _allowsBackForwardNavigationGestures;
}
- (void)removeFromSuperview
{
if (_webView) {