mirror of
https://github.com/status-im/react-native.git
synced 2025-01-26 17:30:25 +00:00
Remove non-top-level export from JSTimers
Reviewed By: davidaurelio Differential Revision: D7705416 fbshipit-source-id: 1252789c2cd59b8666b57edcf17948c102e63888
This commit is contained in:
parent
bc8e42a5e6
commit
931930ae63
@ -483,13 +483,16 @@ const JSTimers = {
|
||||
},
|
||||
};
|
||||
|
||||
let ExportedJSTimers;
|
||||
if (!Timing) {
|
||||
console.warn("Timing native module is not available, can't set timers.");
|
||||
// $FlowFixMe: we can assume timers are generally available
|
||||
module.exports = ({
|
||||
ExportedJSTimers = ({
|
||||
callImmediates: JSTimers.callImmediates,
|
||||
setImmediate: JSTimers.setImmediate,
|
||||
}: typeof JSTimers);
|
||||
} else {
|
||||
module.exports = JSTimers;
|
||||
ExportedJSTimers = JSTimers;
|
||||
}
|
||||
|
||||
module.exports = ExportedJSTimers;
|
||||
|
Loading…
x
Reference in New Issue
Block a user