Thibault Malbranche 5 years ago
parent
commit
77259b6cd0
2 changed files with 10 additions and 5 deletions
  1. 8
    3
      package.json
  2. 2
    2
      src/WebView.ios.tsx

+ 8
- 3
package.json View File

@@ -14,8 +14,8 @@
14 14
     "ci": "CI=true && yarn lint && yarn test",
15 15
     "ci:publish": "yarn semantic-release",
16 16
     "lint": "yarn tsc --noEmit && yarn eslint ./src --ext .ts,.tsx",
17
-    "prepare": "yarn tsc",
18
-    "semantic-release": "semantic-release",
17
+    "build": "yarn tsc",
18
+    "prepublish": "yarn build",
19 19
     "test": "yarn jest"
20 20
   },
21 21
   "peerDependencies": {
@@ -56,5 +56,10 @@
56 56
   "repository": {
57 57
     "type": "git",
58 58
     "url": "https://github.com/react-native-community/react-native-webview.git"
59
-  }
59
+  },
60
+  "files": [
61
+    "lib",
62
+    "index.js",
63
+    "index.d.ts"
64
+  ]
60 65
 }

+ 2
- 2
src/WebView.ios.tsx View File

@@ -391,9 +391,9 @@ class WebView extends React.Component<IOSWebViewProps, State> {
391 391
     let NativeWebView = nativeConfig.component as typeof NativeWebViewIOS;
392 392
 
393 393
     if (useWebKit) {
394
-      NativeWebView = NativeWebViewIOS || RNCWKWebView;
394
+      NativeWebView = NativeWebView || RNCWKWebView;
395 395
     } else {
396
-      NativeWebView = NativeWebViewIOS || RNCUIWebView;
396
+      NativeWebView = NativeWebView || RNCUIWebView;
397 397
     }
398 398
 
399 399
     const webView = (