mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-24 05:34:37 +08:00
Remove node_modules/react from the list of discoverable haste modules
Summary: This removes `node_modules/react` from the list of directories that are used for haste module resolutions. Modules required from React are now imported with `require('react/lib/…')`.
Reviewed By: astreet
Differential Revision: D3509863
fbshipit-source-id: 32cd34e2b8496f0a6676dbe6bb1eacc18124c01e
This commit is contained in:
committed by
Facebook Github Bot 7
parent
4ac4f86bf5
commit
bd60d828c5
@@ -11,7 +11,7 @@
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
const PropTypes = require('ReactPropTypes');
|
||||
const PropTypes = require('react/lib/ReactPropTypes');
|
||||
|
||||
const ImageSourcePropType = PropTypes.oneOfType([
|
||||
PropTypes.shape({
|
||||
@@ -24,12 +24,12 @@ const ImageSourcePropType = PropTypes.oneOfType([
|
||||
uri: PropTypes.string,
|
||||
/**
|
||||
* `method` is the HTTP Method to use. Defaults to GET if not specified.
|
||||
*/
|
||||
*/
|
||||
method: PropTypes.string,
|
||||
/**
|
||||
* `headers` is an object representing the HTTP headers to send along with the
|
||||
* request for a remote image.
|
||||
*/
|
||||
*/
|
||||
headers: PropTypes.objectOf(PropTypes.string),
|
||||
/**
|
||||
* `body` is the HTTP body to send with the request. This must be a valid
|
||||
|
||||
Reference in New Issue
Block a user