UNBREAK open source and prod apps

Reviewed By: bestander

Differential Revision: D3182004

fb-gh-sync-id: 7346e3fd85eeed8ba103ccc1fd60c86c8a656712
fbshipit-source-id: 7346e3fd85eeed8ba103ccc1fd60c86c8a656712
This commit is contained in:
Spencer Ahrens 2016-04-14 15:46:36 -07:00 committed by Facebook Github Bot 9
parent 200b6fa277
commit 0e719bd5ca
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ const View = require('View');
const ensurePositiveDelayProps = require('ensurePositiveDelayProps');
const onlyChild = require('onlyChild');
const warning = require('warning');
const warning = require('fbjs/lib/warning');
type Event = Object;
@ -156,7 +156,7 @@ const TouchableWithoutFeedback = React.createClass({
warning(
!child.type || child.type.displayName !== 'Text',
'TouchableWithoutFeedback does not work well with Text children. Wrap children in a View instead. See ' +
child._owner.getName()
((child._owner && child._owner.getName && child._owner.getName()) || '<unknown>')
);
if (Touchable.TOUCH_TARGET_DEBUG && child.type && child.type.displayName === 'View') {
if (!Array.isArray(children)) {