Compare commits

..
6 Commits
Author SHA1 Message Date
Emin Khateeb 418f04b312 Merge pull request #11 from TimeWarpEngineering/master
Enable esModuleInterop
2018-04-01 11:20:26 +02:00
Steven Cramer 126df709d6 Update import in test
Update the import in __tests__\App.tsx to align with react-native
2018-04-01 16:15:57 +07:00
Steven Cramer 590b9f8326 Update to Standard React Native Template import
react-native default template uses import React from 'react' and this is now supported the the allowSyntheticDefaultImports enabled.
2018-04-01 14:53:51 +07:00
Steven Cramer 7b686518ed Allow esModuleInterop
Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports.
2018-04-01 14:52:23 +07:00
Steven Cramer 491b0caf18 sort dependencies
Lets keep these sorted so easier to find and see differences.
2018-04-01 14:50:39 +07:00
Steven T. Cramer 393523caa6 Merge pull request #1 from emin93/master
Merge pull request #10 from TimeWarpEngineering/master
2018-04-01 14:44:13 +07:00
4 changed files with 11 additions and 9 deletions

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"