react-native/Libraries/Core
Jhen cf51aee9a0 Support `options` param for `requestIdleCallback`
Summary:
The `requestIdleCallback` sometimes doesn't work in `Debug JS Remotely` mode if I use real device, the callback will never called. I guess it may be debugger worker and device caused by the time gap, or some cause websocket blocking, so it's just sometimes happening.

I think we can support [options](https://developer.mozilla.org/zh-TW/docs/Web/API/Window/requestIdleCallback#Parameters) for that.

Added an example `Run requestIdleCallback with timeout option` for Timers of UIExplorer, it use `{ timeout: 100 }` option with burn CPU 100ms, we can see `didTimeout` is true.
Closes https://github.com/facebook/react-native/pull/13116

Differential Revision: D4894348

Pulled By: hramos

fbshipit-source-id: 29c4c2fe5634b30a8bf8d3495305cd8f635ed922
2017-06-01 11:00:40 -07:00
..
Devtools Added stubs for some native modules 2017-06-01 08:31:19 -07:00
Timers Support `options` param for `requestIdleCallback` 2017-06-01 11:00:40 -07:00
__mocks__ Reorganize core JS files 2016-10-11 10:14:28 -07:00
ErrorUtils.js RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00
ExceptionsManager.js Reorganize core JS files 2016-10-11 10:14:28 -07:00
InitializeCore.js make systrace look more like prod 2017-05-11 15:21:27 -07:00