Skip to content

Commit

Permalink
@allow-large-files flow 0.84 xplat deploy
Browse files Browse the repository at this point in the history
Reviewed By: samwgoldman

Differential Revision: D10851695

fbshipit-source-id: 951c628844bbbc7331d4e75f62485db88e5ba7c4
  • Loading branch information
avikchaudhuri authored and facebook-github-bot committed Oct 26, 2018
1 parent 9687090 commit 11552a7
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ untyped-import
untyped-type-import

[version]
^0.83.0
^0.84.0
2 changes: 1 addition & 1 deletion .flowconfig.android
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ untyped-import
untyped-type-import

[version]
^0.83.0
^0.84.0
4 changes: 3 additions & 1 deletion Libraries/Components/ScrollView/ScrollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@ export type Props = $ReadOnly<{|
* - `false`, deprecated, use 'never' instead
* - `true`, deprecated, use 'always' instead
*/
// $FlowFixMe(site=react_native_fb) Issues found when typing ScrollView
/* $FlowFixMe(>=0.84.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.84 was deployed. To see the error, delete this comment
* and run Flow. */
keyboardShouldPersistTaps?: ?('always' | 'never' | 'handled' | false | true),
/**
* Called when the momentum scroll starts (scroll which occurs as the ScrollView glides to a stop).
Expand Down
6 changes: 6 additions & 0 deletions Libraries/StyleSheet/processTransform.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ function _validateTransform(key, value, transformation) {
value.length === 9 || value.length === 16,
'Matrix transform must have a length of 9 (2d) or 16 (3d). ' +
'Provided matrix has a length of %s: %s',
/* $FlowFixMe(>=0.84.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.84 was deployed. To see the error, delete
* this comment and run Flow. */
value.length,
stringifySafe(transformation),
);
Expand All @@ -181,6 +184,9 @@ function _validateTransform(key, value, transformation) {
invariant(
value.length === 2 || value.length === 3,
'Transform with key translate must be an array of length 2 or 3, found %s: %s',
/* $FlowFixMe(>=0.84.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.84 was deployed. To see the error, delete
* this comment and run Flow. */
value.length,
stringifySafe(transformation),
);
Expand Down
3 changes: 3 additions & 0 deletions Libraries/Utilities/HMRClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ const HMRClient = {
// Moving to top gives errors due to NativeModules not being initialized
const HMRLoadingView = require('HMRLoadingView');

/* $FlowFixMe(>=0.84.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.84 was deployed. To see the error, delete this
* comment and run Flow. */
const wsHostPort = port !== null && port !== '' ? `${host}:${port}` : host;

bundleEntry = bundleEntry.replace(/\.(bundle|delta)/, '.js');
Expand Down
2 changes: 1 addition & 1 deletion local-cli/templates/HelloWorld/_flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[version]
^0.83.0
^0.84.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
"eslint-plugin-prettier": "2.6.0",
"eslint-plugin-react": "7.8.2",
"eslint-plugin-react-native": "3.5.0",
"flow-bin": "^0.83.0",
"flow-bin": "^0.84.0",
"jest": "23.4.1",
"jest-junit": "5.1.0",
"prettier": "1.13.6",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2827,10 +2827,10 @@ flat-cache@^1.2.1:
graceful-fs "^4.1.2"
write "^0.2.1"

flow-bin@^0.83.0:
version "0.83.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.83.0.tgz#fd26f5f95758d7701264b3f9a1e1a3d4cbcab1a9"
integrity sha512-1K83EL/U9Gh0BaXPKkZe6TRizSmNSKx9Wuws1c8gh7DJEwiburtCxYT+4o7in1+GnNEm3CZWnbnVV8n9HMpiDA==
flow-bin@^0.84.0:
version "0.84.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.84.0.tgz#4cb2364c750fb37a7840524fa62456b53f64cdcb"
integrity sha512-ocji8eEYp+YfICsm+F6cIHUcD7v5sb0/ADEXm6gyUKdjQzmSckMrPUdZtyfP973t3YGHKliUMxMvIBHyR5LbXQ==

for-in@^1.0.1, for-in@^1.0.2:
version "1.0.2"
Expand Down

0 comments on commit 11552a7

Please sign in to comment.