Thibault Malbranche před 6 roky
rodič
revize
a3009f7c48
4 změnil soubory, kde provedl 12 přidání a 14 odebrání
  1. 0
    7
      .eslintrc.js
  2. 2
    1
      package.json
  3. 6
    6
      src/WebView.ios.tsx
  4. 4
    0
      yarn.lock

+ 0
- 7
.eslintrc.js Zobrazit soubor

@@ -38,13 +38,6 @@ module.exports = {
38 38
 
39 39
     'no-unused-vars': 'off',
40 40
   },
41
-  overrides: [
42
-    {
43
-      files: ['*.ts?(x)'],
44
-      parser: 'typescript-eslint-parser',
45
-      plugins: ['react-native', 'typescript'],
46
-    },
47
-  ],
48 41
   settings: {
49 42
     'import/resolver': {
50 43
       node: {

+ 2
- 1
package.json Zobrazit soubor

@@ -28,6 +28,7 @@
28 28
   },
29 29
   "devDependencies": {
30 30
     "@semantic-release/git": "7.0.5",
31
+    "@types/escape-string-regexp": "1.0.0",
31 32
     "@types/invariant": "^2.2.29",
32 33
     "@types/react": "16.7.7",
33 34
     "@types/react-native": "^0.57.6",
@@ -51,4 +52,4 @@
51 52
     "type": "git",
52 53
     "url": "https://github.com/react-native-community/react-native-webview.git"
53 54
   }
54
-}
55
+}

+ 6
- 6
src/WebView.ios.tsx Zobrazit soubor

@@ -155,12 +155,12 @@ export default class WebView extends React.Component<
155 155
   }
156 156
 
157 157
   _getCommands(): {
158
-    goForward: () => void,
159
-    goBack: () => void,
160
-    reload: () => void,
161
-    stopLoading: () => void,
162
-    postMessage: () => void,
163
-    injectJavaScript: () => void,
158
+    goForward: () => void;
159
+    goBack: () => void;
160
+    reload: () => void;
161
+    stopLoading: () => void;
162
+    postMessage: () => void;
163
+    injectJavaScript: () => void;
164 164
   } {
165 165
     if (!this.props.useWebKit) {
166 166
       return UIManager.RNCUIWebView.Commands;

+ 4
- 0
yarn.lock Zobrazit soubor

@@ -674,6 +674,10 @@
674 674
     into-stream "^4.0.0"
675 675
     lodash "^4.17.4"
676 676
 
677
+"@types/escape-string-regexp@1.0.0":
678
+  version "1.0.0"
679
+  resolved "https://registry.yarnpkg.com/@types/escape-string-regexp/-/escape-string-regexp-1.0.0.tgz#052d16d87db583b72daceae4eaabddb66954424c"
680
+
677 681
 "@types/invariant@^2.2.29":
678 682
   version "2.2.29"
679 683
   resolved "https://registry.yarnpkg.com/@types/invariant/-/invariant-2.2.29.tgz#aa845204cd0a289f65d47e0de63a6a815e30cc66"