Daniel Zlotin 7 年之前
父節點
當前提交
9dcaa97cdb
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 2
    2
      lib/src/adapters/Element.js
  2. 2
    1
      package.json
  3. 0
    1
      tsconfig.json

+ 2
- 2
lib/src/adapters/Element.js 查看文件

@@ -1,5 +1,5 @@
1
-import PropTypes from 'prop-types';
2
-import React from 'react';
1
+import * as React from 'react';
2
+import * as PropTypes from 'prop-types';
3 3
 import { requireNativeComponent } from 'react-native';
4 4
 
5 5
 class Element extends React.Component {

+ 2
- 1
package.json 查看文件

@@ -73,7 +73,8 @@
73 73
     "@types/react": "16.0.0",
74 74
     "@types/react-native": "0.49.x",
75 75
     "@types/jest": "22.x.x",
76
-    "@types/prop-types": "15.x.x"
76
+    "@types/prop-types": "15.x.x",
77
+    "@types/react-test-renderer": "16.0.0"
77 78
   },
78 79
   "babel": {
79 80
     "env": {

+ 0
- 1
tsconfig.json 查看文件

@@ -3,7 +3,6 @@
3 3
     "outDir": "./lib/dist",
4 4
     "allowJs": true,
5 5
     "target": "esnext",
6
-    "moduleResolution": "node",
7 6
     "module": "commonjs",
8 7
     "jsx": "preserve",
9 8
     "noEmitOnError": true,