Daniel Zlotin 7 years ago
parent
commit
9dcaa97cdb
3 changed files with 4 additions and 4 deletions
  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 View File

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
 import { requireNativeComponent } from 'react-native';
3
 import { requireNativeComponent } from 'react-native';
4
 
4
 
5
 class Element extends React.Component {
5
 class Element extends React.Component {

+ 2
- 1
package.json View File

73
     "@types/react": "16.0.0",
73
     "@types/react": "16.0.0",
74
     "@types/react-native": "0.49.x",
74
     "@types/react-native": "0.49.x",
75
     "@types/jest": "22.x.x",
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
   "babel": {
79
   "babel": {
79
     "env": {
80
     "env": {

+ 0
- 1
tsconfig.json View File

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