mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-12 11:40:33 +08:00
Revert D12994045: Flow v0.86.0 in xplat/js [3/n]
Differential Revision: D12994045 Original commit changeset: 04552bf081ba fbshipit-source-id: 062b367b88a966a6efc895c99e9911f0ec0fe8ff
This commit is contained in:
committed by
Facebook Github Bot
parent
43ad3a64e6
commit
984eef8f9e
@@ -101,4 +101,4 @@ untyped-import
|
|||||||
untyped-type-import
|
untyped-type-import
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
^0.86.0
|
^0.85.0
|
||||||
|
|||||||
@@ -101,4 +101,4 @@ untyped-import
|
|||||||
untyped-type-import
|
untyped-type-import
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
^0.86.0
|
^0.85.0
|
||||||
|
|||||||
@@ -349,6 +349,9 @@ class AnimatedInterpolation extends AnimatedWithChildren {
|
|||||||
__transformDataType(range: Array<any>) {
|
__transformDataType(range: Array<any>) {
|
||||||
// Change the string array type to number array
|
// Change the string array type to number array
|
||||||
// So we can reuse the same logic in iOS and Android platform
|
// So we can reuse the same logic in iOS and Android platform
|
||||||
|
/* $FlowFixMe(>=0.70.0 site=react_native_fb) This comment suppresses an
|
||||||
|
* error found when Flow v0.70 was deployed. To see the error delete this
|
||||||
|
* comment and run Flow. */
|
||||||
return range.map(function(value) {
|
return range.map(function(value) {
|
||||||
if (typeof value !== 'string') {
|
if (typeof value !== 'string') {
|
||||||
return value;
|
return value;
|
||||||
|
|||||||
@@ -396,8 +396,8 @@ export type Props = $ReadOnly<{|
|
|||||||
* - `false`, deprecated, use 'never' instead
|
* - `false`, deprecated, use 'never' instead
|
||||||
* - `true`, deprecated, use 'always' instead
|
* - `true`, deprecated, use 'always' instead
|
||||||
*/
|
*/
|
||||||
/* $FlowFixMe(>=0.86.0 site=react_native_fb) This comment suppresses an error
|
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
|
||||||
* found when Flow v0.86 was deployed. To see the error, delete this comment
|
* found when Flow v0.85 was deployed. To see the error, delete this comment
|
||||||
* and run Flow. */
|
* and run Flow. */
|
||||||
keyboardShouldPersistTaps?: ?('always' | 'never' | 'handled' | false | true),
|
keyboardShouldPersistTaps?: ?('always' | 'never' | 'handled' | false | true),
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -33,18 +33,12 @@ const UIManagerStatTracker = {
|
|||||||
const createViewOrig = UIManager.createView;
|
const createViewOrig = UIManager.createView;
|
||||||
UIManager.createView = function(tag, className, rootTag, props) {
|
UIManager.createView = function(tag, className, rootTag, props) {
|
||||||
incStat('createView', 1);
|
incStat('createView', 1);
|
||||||
/* $FlowFixMe(>=0.86.0 site=react_native_fb) This comment suppresses an
|
|
||||||
* error found when Flow v0.86 was deployed. To see the error, delete
|
|
||||||
* this comment and run Flow. */
|
|
||||||
incStat('setProp', Object.keys(props || []).length);
|
incStat('setProp', Object.keys(props || []).length);
|
||||||
createViewOrig(tag, className, rootTag, props);
|
createViewOrig(tag, className, rootTag, props);
|
||||||
};
|
};
|
||||||
const updateViewOrig = UIManager.updateView;
|
const updateViewOrig = UIManager.updateView;
|
||||||
UIManager.updateView = function(tag, className, props) {
|
UIManager.updateView = function(tag, className, props) {
|
||||||
incStat('updateView', 1);
|
incStat('updateView', 1);
|
||||||
/* $FlowFixMe(>=0.86.0 site=react_native_fb) This comment suppresses an
|
|
||||||
* error found when Flow v0.86 was deployed. To see the error, delete
|
|
||||||
* this comment and run Flow. */
|
|
||||||
incStat('setProp', Object.keys(props || []).length);
|
incStat('setProp', Object.keys(props || []).length);
|
||||||
updateViewOrig(tag, className, props);
|
updateViewOrig(tag, className, props);
|
||||||
};
|
};
|
||||||
@@ -58,13 +52,7 @@ const UIManagerStatTracker = {
|
|||||||
remove,
|
remove,
|
||||||
) {
|
) {
|
||||||
incStat('manageChildren', 1);
|
incStat('manageChildren', 1);
|
||||||
/* $FlowFixMe(>=0.86.0 site=react_native_fb) This comment suppresses an
|
|
||||||
* error found when Flow v0.86 was deployed. To see the error, delete
|
|
||||||
* this comment and run Flow. */
|
|
||||||
incStat('move', Object.keys(moveFrom || []).length);
|
incStat('move', Object.keys(moveFrom || []).length);
|
||||||
/* $FlowFixMe(>=0.86.0 site=react_native_fb) This comment suppresses an
|
|
||||||
* error found when Flow v0.86 was deployed. To see the error, delete
|
|
||||||
* this comment and run Flow. */
|
|
||||||
incStat('remove', Object.keys(remove || []).length);
|
incStat('remove', Object.keys(remove || []).length);
|
||||||
manageChildrenOrig(tag, moveFrom, moveTo, addTags, addIndices, remove);
|
manageChildrenOrig(tag, moveFrom, moveTo, addTags, addIndices, remove);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -67,4 +67,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
|||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
^0.86.0
|
^0.85.0
|
||||||
|
|||||||
@@ -219,7 +219,7 @@
|
|||||||
"eslint-plugin-prettier": "2.6.0",
|
"eslint-plugin-prettier": "2.6.0",
|
||||||
"eslint-plugin-react": "7.8.2",
|
"eslint-plugin-react": "7.8.2",
|
||||||
"eslint-plugin-react-native": "3.5.0",
|
"eslint-plugin-react-native": "3.5.0",
|
||||||
"flow-bin": "^0.86.0",
|
"flow-bin": "^0.85.0",
|
||||||
"jest": "24.0.0-alpha.6",
|
"jest": "24.0.0-alpha.6",
|
||||||
"jest-junit": "5.2.0",
|
"jest-junit": "5.2.0",
|
||||||
"prettier": "1.13.6",
|
"prettier": "1.13.6",
|
||||||
|
|||||||
@@ -2586,10 +2586,10 @@ flat-cache@^1.2.1:
|
|||||||
graceful-fs "^4.1.2"
|
graceful-fs "^4.1.2"
|
||||||
write "^0.2.1"
|
write "^0.2.1"
|
||||||
|
|
||||||
flow-bin@^0.86.0:
|
flow-bin@^0.85.0:
|
||||||
version "0.86.0"
|
version "0.85.0"
|
||||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.86.0.tgz#153a28722b4dc13b7200c74b644dd4d9f4969a11"
|
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.85.0.tgz#a3ca80748a35a071d5bbb2fcd61d64d977fc53a6"
|
||||||
integrity sha512-ulRvFH3ewGIYwg+qPk/OJXoe3Nhqi0RyR0wqgK0b1NzUDEC6O99zU39MBTickXvlrr6iwRO6Wm4lVGeDmnzbew==
|
integrity sha512-ougBA2q6Rn9sZrjZQ9r5pTFxCotlGouySpD2yRIuq5AYwwfIT8HHhVMeSwrN5qJayjHINLJyrnsSkkPCZyfMrQ==
|
||||||
|
|
||||||
for-in@^1.0.1, for-in@^1.0.2:
|
for-in@^1.0.1, for-in@^1.0.2:
|
||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
|
|||||||
Reference in New Issue
Block a user