mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a16f7dc547
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44380 * setInterval's second argument is optional, and defaults to 0 * setTimeout is spec'ed to return a positive integer. There's also no need to use HostObjects here to represent the timer index, it just hurts performance and makes this code more complex for no clear reason. Changelog: [General][Fixed] New architecture timer methods now return integers instead of an opaque object. Reviewed By: RSNara Differential Revision: D56863422 fbshipit-source-id: fd3e75303662d865083d01e2bfe8633bac151a0e