From bee15de5526cdae34b407aa83f3fa4627f502954 Mon Sep 17 00:00:00 2001 From: Thibault Malbranche Date: Wed, 20 Mar 2019 11:36:58 +0000 Subject: [PATCH] last fixes --- package.json | 3 ++- src/WebView.ios.tsx | 8 -------- src/WebView.tsx | 5 +++++ src/WebViewShared.ts | 8 -------- src/WebViewTypes.ts | 8 -------- 5 files changed, 7 insertions(+), 25 deletions(-) create mode 100644 src/WebView.tsx diff --git a/package.json b/package.json index b248a54..69cefd2 100644 --- a/package.json +++ b/package.json @@ -62,6 +62,7 @@ "ios", "lib", "index.js", - "index.d.ts" + "index.d.ts", + "react-native-webview.podspec" ] } diff --git a/src/WebView.ios.tsx b/src/WebView.ios.tsx index 5c8a14a..e0dfb66 100644 --- a/src/WebView.ios.tsx +++ b/src/WebView.ios.tsx @@ -1,11 +1,3 @@ -/** - * 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. - * - */ - import React from 'react'; import { ActivityIndicator, diff --git a/src/WebView.tsx b/src/WebView.tsx new file mode 100644 index 0000000..4cf2da7 --- /dev/null +++ b/src/WebView.tsx @@ -0,0 +1,5 @@ +// This files provides compatibility with out out tree platform. +import { WebView } from 'react-native'; + +export { WebView }; +export default WebView; diff --git a/src/WebViewShared.ts b/src/WebViewShared.ts index 7ed7264..6c240d8 100644 --- a/src/WebViewShared.ts +++ b/src/WebViewShared.ts @@ -1,11 +1,3 @@ -/** - * 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. - * - */ - import escapeStringRegexp from 'escape-string-regexp'; import { Linking, UIManager as NotTypedUIManager } from 'react-native'; import { diff --git a/src/WebViewTypes.ts b/src/WebViewTypes.ts index 5024ec4..3662213 100644 --- a/src/WebViewTypes.ts +++ b/src/WebViewTypes.ts @@ -1,11 +1,3 @@ -/** - * 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. - * - */ - /* eslint-disable react/no-multi-comp */ import { ReactElement, Component } from 'react';