mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-08 07:53:15 +08:00
@allow-large-files [Flow] Upgrade xplat/js to flow v0.63
Reviewed By: samwgoldman Differential Revision: D6675320 fbshipit-source-id: 85575a6f30a50a3c40c6b46ba36f8cd33c091b1d
This commit is contained in:
committed by
Facebook Github Bot
parent
e5c2a66897
commit
6b95c4fb14
@@ -167,6 +167,9 @@ class InternalSettings extends React.Component<{}, {busyTime: number | string, f
|
||||
initialValue={false}
|
||||
label="Force JS Stalls"
|
||||
onEnable={() => {
|
||||
/* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment
|
||||
* suppresses an error found when Flow v0.63 was deployed. To see
|
||||
* the error delete this comment and run Flow. */
|
||||
this._stallInterval = setInterval(() => {
|
||||
const start = Date.now();
|
||||
console.warn('burn CPU');
|
||||
@@ -175,6 +178,9 @@ class InternalSettings extends React.Component<{}, {busyTime: number | string, f
|
||||
}, 300);
|
||||
}}
|
||||
onDisable={() => {
|
||||
/* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment
|
||||
* suppresses an error found when Flow v0.63 was deployed. To see
|
||||
* the error delete this comment and run Flow. */
|
||||
clearInterval(this._stallInterval || 0);
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user