Revert D5446953: [react-native] Conditionally export JSTimers
Differential Revision: D5446953 fbshipit-source-id: 8275e1b71b8fac9b120c8ddff486f9cd88b7939d
This commit is contained in:
parent
737abe3b76
commit
2639e7f123
|
@ -12,7 +12,6 @@
|
|||
var remoteModulesConfig = [
|
||||
['RemoteModule1',null,['remoteMethod','promiseMethod'],[]],
|
||||
['RemoteModule2',null,['remoteMethod','promiseMethod'],[]],
|
||||
['Timing',null,['callImmediates']],
|
||||
];
|
||||
|
||||
var MessageQueueTestConfig = {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue