|
@@ -296,10 +296,17 @@ class WebView extends React.Component<WebViewSharedProps, State> {
|
296
|
296
|
);
|
297
|
297
|
}
|
298
|
298
|
|
|
299
|
+ _getViewManagerConfig = viewManagerName => {
|
|
300
|
+ if (!UIManager.getViewManagerConfig) {
|
|
301
|
+ return UIManager[viewManagerName];
|
|
302
|
+ }
|
|
303
|
+ return UIManager.getViewManagerConfig(viewManagerName);
|
|
304
|
+ };
|
|
305
|
+
|
299
|
306
|
_getCommands = () =>
|
300
|
307
|
!this.props.useWebKit
|
301
|
|
- ? UIManager.getViewManagerConfig('RNCUIWebView').Commands
|
302
|
|
- : UIManager.getViewManagerConfig('RNCWKWebView').Commands;
|
|
308
|
+ ? this._getViewManagerConfig('RNCUIWebView').Commands
|
|
309
|
+ : this._getViewManagerConfig('RNCWKWebView').Commands;
|
303
|
310
|
|
304
|
311
|
/**
|
305
|
312
|
* Go forward one page in the web view's history.
|