Browse Source

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

Chet Corcos 6 years ago
parent
commit
4bc1dc20fd
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      ios/RNCWKWebView.m

+ 7
- 0
ios/RNCWKWebView.m View File

125
   }
125
   }
126
 }
126
 }
127
 
127
 
128
+// Update webview property when the component prop changes.
129
+- (void)setAllowsBackForwardNavigationGestures:(BOOL)allowsBackForwardNavigationGestures {
130
+  _allowsBackForwardNavigationGestures = allowsBackForwardNavigationGestures;
131
+  _webView.allowsBackForwardNavigationGestures = _allowsBackForwardNavigationGestures;
132
+}
133
+
134
+
128
 - (void)removeFromSuperview
135
 - (void)removeFromSuperview
129
 {
136
 {
130
     if (_webView) {
137
     if (_webView) {