From 68ca85141a9759d50921f5c01ac764e3f0853c42 Mon Sep 17 00:00:00 2001 From: Thibault Malbranche Date: Wed, 19 Sep 2018 01:11:33 +0200 Subject: [PATCH] Removed extra file --- js/WKWebView.ios.js | 46 --------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 js/WKWebView.ios.js diff --git a/js/WKWebView.ios.js b/js/WKWebView.ios.js deleted file mode 100644 index 772fe37..0000000 --- a/js/WKWebView.ios.js +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Copyright (c) 2015-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @format - * @flow - * @providesModule WKWebView - */ - -import React from 'react'; - -import { requireNativeComponent } from 'react-native'; - -import type {DataDetectorTypes} from './WebViewTypes'; - -const RNCWKWebView = requireNativeComponent('RNCWKWebView'); - -type RNCWKWebViewProps = $ReadOnly<{| - allowsInlineMediaPlayback?: ?boolean, - mediaPlaybackRequiresUserAction?: ?boolean, - dataDetectorTypes?: - | ?DataDetectorTypes - | $ReadOnlyArray, -|}>; - -class WKWebView extends React.Component { - componentWillReceiveProps(nextProps: RNCWKWebViewProps) { - this.showRedboxOnPropChanges(nextProps, 'allowsInlineMediaPlayback'); - this.showRedboxOnPropChanges(nextProps, 'mediaPlaybackRequiresUserAction'); - this.showRedboxOnPropChanges(nextProps, 'dataDetectorTypes'); - } - - showRedboxOnPropChanges(nextProps: RNCWKWebViewProps, propName: string) { - if (this.props[propName] !== nextProps[propName]) { - console.error(`Changes to property ${propName} do nothing after the initial render.`); - } - } - - render() { - return ; - } -} - -module.exports = WKWebView;