Summary: Changelog: [Internal]

Reviewed By: mroch

Differential Revision: D26835439

fbshipit-source-id: 2607c3185485c8bd2c7e868dd2e3e0c06866f1f9
This commit is contained in:
Hans Halverson 2021-03-06 11:34:58 -08:00 коммит произвёл Facebook GitHub Bot
Родитель 8e2fa86c63
Коммит d477f80113
12 изменённых файлов: 32 добавлений и 9 удалений

Просмотреть файл

@ -70,4 +70,4 @@ untyped-import
untyped-type-import
[version]
^0.145.0
^0.146.0

Просмотреть файл

@ -70,4 +70,4 @@ untyped-import
untyped-type-import
[version]
^0.145.0
^0.146.0

Просмотреть файл

@ -351,6 +351,7 @@ const JSTimers = {
}
if (errors) {
// $FlowFixMe[incompatible-use]
const errorCount = errors.length;
if (errorCount > 1) {
// Throw all the other errors in a setTimeout, which will throw each
@ -359,11 +360,13 @@ const JSTimers = {
JSTimers.setTimeout(
(error => {
throw error;
// $FlowFixMe[incompatible-use]
}).bind(null, errors[ii]),
0,
);
}
}
// $FlowFixMe[incompatible-use]
throw errors[0];
}
},

Просмотреть файл

@ -66,6 +66,7 @@ export default class NativeEventEmitter<TEventToArgsMap: {...}>
remove: () => {
if (subscription != null) {
this._nativeModule?.removeListeners(1);
// $FlowFixMe[incompatible-use]
subscription.remove();
subscription = null;
}

Просмотреть файл

@ -125,7 +125,11 @@ let Image = (props: ImagePropsType, forwardedRef) => {
}
}
// $FlowFixMe[incompatible-use]
// $FlowFixMe[incompatible-type]
const resizeMode = props.resizeMode || style.resizeMode || 'cover';
// $FlowFixMe[prop-missing]
// $FlowFixMe[incompatible-use]
const tintColor = style.tintColor;
if (props.src != null) {
@ -148,6 +152,7 @@ let Image = (props: ImagePropsType, forwardedRef) => {
{...props}
ref={forwardedRef}
style={style}
// $FlowFixMe[incompatible-type]
resizeMode={resizeMode}
tintColor={tintColor}
source={sources}

Просмотреть файл

@ -701,6 +701,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
} else if (this.props.onViewableItemsChanged) {
this._viewabilityTuples.push({
viewabilityHelper: new ViewabilityHelper(this.props.viewabilityConfig),
// $FlowFixMe[incompatible-call]
onViewableItemsChanged: this.props.onViewableItemsChanged,
});
}
@ -1744,6 +1745,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
}
}
if (someChildHasMore) {
// $FlowFixMe[incompatible-use]
newState.last = ii;
break;
}

Просмотреть файл

@ -120,7 +120,7 @@
"ws": "^6.1.4"
},
"devDependencies": {
"flow-bin": "^0.145.0",
"flow-bin": "^0.146.0",
"react": "17.0.1"
},
"detox": {

Просмотреть файл

@ -40,7 +40,9 @@ function normalizeColorBase(color: ?string | number): null | number {
return (
// b
((parse255(match[1]) << 24) | // r
// $FlowFixMe[incompatible-use]
(parse255(match[2]) << 16) | // g
// $FlowFixMe[incompatible-use]
(parse255(match[3]) << 8) |
0x000000ff) >>> // a
0
@ -51,8 +53,11 @@ function normalizeColorBase(color: ?string | number): null | number {
return (
// b
((parse255(match[1]) << 24) | // r
// $FlowFixMe[incompatible-use]
(parse255(match[2]) << 16) | // g
// $FlowFixMe[incompatible-use]
(parse255(match[3]) << 8) |
// $FlowFixMe[incompatible-use]
parse1(match[4])) >>> // a
0
);
@ -98,7 +103,9 @@ function normalizeColorBase(color: ?string | number): null | number {
return (
(hslToRgb(
parse360(match[1]), // h
// $FlowFixMe[incompatible-use]
parsePercentage(match[2]), // s
// $FlowFixMe[incompatible-use]
parsePercentage(match[3]), // l
) |
0x000000ff) >>> // a
@ -110,9 +117,12 @@ function normalizeColorBase(color: ?string | number): null | number {
return (
(hslToRgb(
parse360(match[1]), // h
// $FlowFixMe[incompatible-use]
parsePercentage(match[2]), // s
// $FlowFixMe[incompatible-use]
parsePercentage(match[3]), // l
) |
// $FlowFixMe[incompatible-use]
parse1(match[4])) >>> // a
0
);

Просмотреть файл

@ -327,7 +327,9 @@ class TokenizedTextExample extends React.Component<
index = 1;
}
parts.push(_text.substr(0, index));
// $FlowFixMe[incompatible-use]
parts.push(token[0]);
// $FlowFixMe[incompatible-use]
index = index + token[0].length;
_text = _text.slice(index);
}

Просмотреть файл

@ -33,7 +33,7 @@
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-react-native": "3.10.0",
"eslint-plugin-relay": "1.8.1",
"flow-bin": "^0.145.0",
"flow-bin": "^0.146.0",
"jest": "^26.5.2",
"jest-junit": "^10.0.0",
"jscodeshift": "^0.11.0",

Просмотреть файл

@ -63,4 +63,4 @@ untyped-import
untyped-type-import
[version]
^0.145.0
^0.146.0

Просмотреть файл

@ -3032,10 +3032,10 @@ flatted@^2.0.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==
flow-bin@^0.145.0:
version "0.145.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.145.0.tgz#922f7c3568caaa5eb64621ec536deb56b24d1795"
integrity sha512-+9fi9BMxRBtSWC1x0hWggWTb8Vih+AC7wyvLAX5wR1m6u2lF2HLtixXqy2GX8bWgaynSEJR5lmPxYYC4wMI8cA==
flow-bin@^0.146.0:
version "0.146.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.146.0.tgz#fafa002663a0e13bf3c08c3972dd93d68289ccc6"
integrity sha512-TP8eCwltqc7fo6ad5klgsrZ2veZIK2qM1vHf1A/cnXTStPh8hLAz1cOXmlQIFZR/7fjSMI39TS3CgF6M/HUhAw==
flow-parser@0.*, flow-parser@^0.121.0:
version "0.121.0"