Thibault Malbranche 6 years ago
parent
commit
a3009f7c48
4 changed files with 12 additions and 14 deletions
  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 View File

38
 
38
 
39
     'no-unused-vars': 'off',
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
   settings: {
41
   settings: {
49
     'import/resolver': {
42
     'import/resolver': {
50
       node: {
43
       node: {

+ 2
- 1
package.json View File

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

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

155
   }
155
   }
156
 
156
 
157
   _getCommands(): {
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
     if (!this.props.useWebKit) {
165
     if (!this.props.useWebKit) {
166
       return UIManager.RNCUIWebView.Commands;
166
       return UIManager.RNCUIWebView.Commands;

+ 4
- 0
yarn.lock View File

674
     into-stream "^4.0.0"
674
     into-stream "^4.0.0"
675
     lodash "^4.17.4"
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
 "@types/invariant@^2.2.29":
681
 "@types/invariant@^2.2.29":
678
   version "2.2.29"
682
   version "2.2.29"
679
   resolved "https://registry.yarnpkg.com/@types/invariant/-/invariant-2.2.29.tgz#aa845204cd0a289f65d47e0de63a6a815e30cc66"
683
   resolved "https://registry.yarnpkg.com/@types/invariant/-/invariant-2.2.29.tgz#aa845204cd0a289f65d47e0de63a6a815e30cc66"