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.
This commit is contained in:
Steven Cramer committed 2018-04-01 14:53:51 +07:00
1 parent 7b686518ed
commit 590b9f8326
2 files changed
+2 -2

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,
+1 -1
View File
@@ -1,5 +1,5 @@
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.