mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 11:41:08 +00:00
fix(WKWebview): Update webview property when allowsBackForwardNavigationGestures prop changes (#173)
This commit is contained in:
committed by
Thibault Malbranche
parent
ac406bf66f
commit
4bc1dc20fd
@@ -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
|
- (void)removeFromSuperview
|
||||||
{
|
{
|
||||||
if (_webView) {
|
if (_webView) {
|
||||||
|
|||||||
Reference in New Issue
Block a user