소스 검색

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

Chet Corcos 5 년 전
부모
커밋
4bc1dc20fd
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7
    0
      ios/RNCWKWebView.m

+ 7
- 0
ios/RNCWKWebView.m 파일 보기

@@ -125,6 +125,13 @@ static NSString *const MessageHanderName = @"ReactNative";
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 135
 - (void)removeFromSuperview
129 136
 {
130 137
     if (_webView) {