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:
1 parent
7b686518ed
commit
590b9f8326
2 files changed
+2
-2
No files matched your search
@@ -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
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user