Merge pull request #11 from TimeWarpEngineering/master

Enable esModuleInterop
This commit is contained in:
Emin Khateeb authored and GitHub committed 2018-04-01 11:20:26 +02:00
commit 2a72fdb591
4 files changed
+11 -9

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@
* https://github.com/emin93/react-native-template-typescript
*/
import * as React from 'react';
import React from 'react';
import {
Platform,
StyleSheet,
+2 -2
View File
@@ -1,9 +1,9 @@
import 'react-native';
import * as React from 'react';
import React from 'react';
import App from '../App';
// Note: test renderer must be required after react-native.
import * as renderer from 'react-test-renderer';
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
+5 -5
View File
@@ -1,9 +1,9 @@
[
"typescript",
"react-native-typescript-transformer",
"ts-jest",
"@types/jest",
"@types/react",
"@types/react-native",
"@types/jest",
"@types/react-test-renderer"
"@types/react-test-renderer",
"react-native-typescript-transformer",
"ts-jest",
"typescript"
]
+3 -1
View File
@@ -4,7 +4,9 @@
"jsx": "react",
"noEmit": true,
"moduleResolution": "node",
"noImplicitAny": true
"noImplicitAny": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
},
"exclude": [
"node_modules"