mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 20:25:33 +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
@@ -1,4 +1,3 @@
|
||||
|
||||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
@@ -19,7 +18,7 @@ const Touchable = require('Touchable');
|
||||
const View = require('View');
|
||||
|
||||
const ensurePositiveDelayProps = require('ensurePositiveDelayProps');
|
||||
const onlyChild = require('onlyChild');
|
||||
const onlyChild = require('react/lib/onlyChild');
|
||||
const warning = require('fbjs/lib/warning');
|
||||
|
||||
type Event = Object;
|
||||
|
||||
Reference in New Issue
Block a user