mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Update imports in generated projects
Summary:Fixes warnings when React API is used by requiring 'react-native'. Closes https://github.com/facebook/react-native/pull/7060 Differential Revision: D3196109 Pulled By: mkonicek fb-gh-sync-id: b47afc138cd7909ad53c0d67a65e3a124b87134b fbshipit-source-id: b47afc138cd7909ad53c0d67a65e3a124b87134b
This commit is contained in:
committed by
Facebook Github Bot 4
parent
546d140ec7
commit
d9349a7b79
@@ -3,9 +3,9 @@
|
||||
* https://github.com/facebook/react-native
|
||||
*/
|
||||
|
||||
import React, {
|
||||
import React, { Component } from 'react';
|
||||
import {
|
||||
AppRegistry,
|
||||
Component,
|
||||
StyleSheet,
|
||||
Text,
|
||||
View
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import React, {
|
||||
import React, { Component } from 'react';
|
||||
import {
|
||||
AppRegistry,
|
||||
Component,
|
||||
StyleSheet,
|
||||
Text,
|
||||
View
|
||||
|
||||
Reference in New Issue
Block a user