mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 12:45:37 +08:00
Deploy Flow 0.18.1 to fbobjc
Reviewed By: gabelevi Differential Revision: D2575778 fb-gh-sync-id: 2cf610959db6a493d1813455b17f66bc997a9ef3
This commit is contained in:
committed by
facebook-github-bot-3
parent
c2e7384110
commit
d4eb8201f1
@@ -43,9 +43,9 @@ suppress_type=$FlowIssue
|
|||||||
suppress_type=$FlowFixMe
|
suppress_type=$FlowFixMe
|
||||||
suppress_type=$FixMe
|
suppress_type=$FixMe
|
||||||
|
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-7]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-8]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-7]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+
|
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-8]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
0.17.0
|
0.18.1
|
||||||
|
|||||||
@@ -202,13 +202,22 @@ function createInterpolationFromStringOutputRange(
|
|||||||
// [200, 250],
|
// [200, 250],
|
||||||
// [0, 0.5],
|
// [0, 0.5],
|
||||||
// ]
|
// ]
|
||||||
|
/* $FlowFixMe(>=0.18.0): `outputRange[0].match()` can return `null`. Need to
|
||||||
|
* guard against this possibility.
|
||||||
|
*/
|
||||||
var outputRanges = outputRange[0].match(stringShapeRegex).map(() => []);
|
var outputRanges = outputRange[0].match(stringShapeRegex).map(() => []);
|
||||||
outputRange.forEach(value => {
|
outputRange.forEach(value => {
|
||||||
|
/* $FlowFixMe(>=0.18.0): `value.match()` can return `null`. Need to guard
|
||||||
|
* against this possibility.
|
||||||
|
*/
|
||||||
value.match(stringShapeRegex).forEach((number, i) => {
|
value.match(stringShapeRegex).forEach((number, i) => {
|
||||||
outputRanges[i].push(+number);
|
outputRanges[i].push(+number);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/* $FlowFixMe(>=0.18.0): `outputRange[0].match()` can return `null`. Need to
|
||||||
|
* guard against this possibility.
|
||||||
|
*/
|
||||||
var interpolations = outputRange[0].match(stringShapeRegex).map((value, i) => {
|
var interpolations = outputRange[0].match(stringShapeRegex).map((value, i) => {
|
||||||
return Interpolation.create({
|
return Interpolation.create({
|
||||||
...config,
|
...config,
|
||||||
|
|||||||
Reference in New Issue
Block a user