Skip to content

Commit 590b9f8

Browse files
Steven CramerSteven Cramer
authored andcommitted
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.
1 parent 7b68651 commit 590b9f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* https://github.com/emin93/react-native-template-typescript
77
*/
88

9-
import * as React from 'react';
9+
import React from 'react';
1010
import {
1111
Platform,
1212
StyleSheet,

__tests__/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'react-native';
2-
import * as React from 'react';
2+
import React from 'react';
33
import App from '../App';
44

55
// Note: test renderer must be required after react-native.

0 commit comments

Comments
 (0)