Fix some warnings.

Reviewed By: AaaChiuuu

Differential Revision: D3206005

fb-gh-sync-id: 88c0cec6b88479fac747a7ef6a677df30c282089
fbshipit-source-id: 88c0cec6b88479fac747a7ef6a677df30c282089
This commit is contained in:
Spencer Ahrens 2016-04-20 20:44:28 -07:00 committed by Facebook Github Bot 9
parent 9d7b537dd4
commit 99705440a0
2 changed files with 2 additions and 4 deletions

View File

@ -25,6 +25,7 @@ if (__DEV__) {
}
var runnables = {};
var runCount = 1;
type ComponentProvider = () => ReactClass<any>;
@ -88,7 +89,7 @@ var AppRegistry = {
', performance optimizations are ' + (__DEV__ ? 'OFF' : 'ON');
console.log(msg);
BugReporting.init();
BugReporting.addSource('AppRegistry.runApplication', () => msg);
BugReporting.addSource('AppRegistry.runApplication' + runCount++, () => msg);
invariant(
runnables[appKey] && runnables[appKey].run,
'Application ' + appKey + ' has not been registered. This ' +

View File

@ -756,8 +756,5 @@ var Touchable = {
);
}
};
if (Touchable.TOUCH_TARGET_DEBUG) {
console.warn('Touchable.TOUCH_TARGET_DEBUG is enabled');
}
module.exports = Touchable;