mirror of
https://github.com/status-im/react-native.git
synced 2025-02-05 14:13:26 +00:00
Fix some warnings.
Reviewed By: AaaChiuuu Differential Revision: D3206005 fb-gh-sync-id: 88c0cec6b88479fac747a7ef6a677df30c282089 fbshipit-source-id: 88c0cec6b88479fac747a7ef6a677df30c282089
This commit is contained in:
parent
9d7b537dd4
commit
99705440a0
@ -25,6 +25,7 @@ if (__DEV__) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var runnables = {};
|
var runnables = {};
|
||||||
|
var runCount = 1;
|
||||||
|
|
||||||
type ComponentProvider = () => ReactClass<any>;
|
type ComponentProvider = () => ReactClass<any>;
|
||||||
|
|
||||||
@ -88,7 +89,7 @@ var AppRegistry = {
|
|||||||
', performance optimizations are ' + (__DEV__ ? 'OFF' : 'ON');
|
', performance optimizations are ' + (__DEV__ ? 'OFF' : 'ON');
|
||||||
console.log(msg);
|
console.log(msg);
|
||||||
BugReporting.init();
|
BugReporting.init();
|
||||||
BugReporting.addSource('AppRegistry.runApplication', () => msg);
|
BugReporting.addSource('AppRegistry.runApplication' + runCount++, () => msg);
|
||||||
invariant(
|
invariant(
|
||||||
runnables[appKey] && runnables[appKey].run,
|
runnables[appKey] && runnables[appKey].run,
|
||||||
'Application ' + appKey + ' has not been registered. This ' +
|
'Application ' + appKey + ' has not been registered. This ' +
|
||||||
|
@ -756,8 +756,5 @@ var Touchable = {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (Touchable.TOUCH_TARGET_DEBUG) {
|
|
||||||
console.warn('Touchable.TOUCH_TARGET_DEBUG is enabled');
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = Touchable;
|
module.exports = Touchable;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user