Revert D5446953: [react-native] Conditionally export JSTimers

Differential Revision: D5446953

fbshipit-source-id: 8275e1b71b8fac9b120c8ddff486f9cd88b7939d
This commit is contained in:
Arnold Noronha 2017-07-19 12:53:03 -07:00 committed by Facebook Github Bot
parent 737abe3b76
commit 2639e7f123
2 changed files with 1 additions and 8 deletions

View File

@ -12,7 +12,6 @@
var remoteModulesConfig = [
['RemoteModule1',null,['remoteMethod','promiseMethod'],[]],
['RemoteModule2',null,['remoteMethod','promiseMethod'],[]],
['Timing',null,['callImmediates']],
];
var MessageQueueTestConfig = {

View File

@ -478,10 +478,4 @@ const JSTimers = {
},
};
if (!Timing) {
console.warn("Timing native module is not available, can't set timers.");
// $FlowFixMe: we can assume timers are generally available
module.exports = ({}: typeof JSTimers);
} else {
module.exports = JSTimers;
}
module.exports = JSTimers;