Skip to content

Commit b11656a

Browse files
javachefacebook-github-bot
authored andcommitted
Update _flowconfig
Summary: gabelevi mroch: Can you make sure this flow config is also updated when upgrading flow, otherwise our Travis e2e tests fail. Closes #15447 Differential Revision: D5601593 Pulled By: javache fbshipit-source-id: 9dbaa3c1ff732b191452c2c2e56fcf0486fc44c8
1 parent 7d0c128 commit b11656a

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

Libraries/Blob/URL.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,19 @@
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*
99
* @providesModule URL
10+
* @format
1011
* @flow
1112
*/
1213

1314
'use strict';
1415

1516
const Blob = require('Blob');
1617

17-
const { BlobModule } = require('NativeModules');
18+
const {BlobModule} = require('NativeModules');
1819

1920
let BLOB_URL_PREFIX = null;
2021

21-
if (typeof BlobModule.BLOB_URI_SCHEME === 'string') {
22+
if (BlobModule && typeof BlobModule.BLOB_URI_SCHEME === 'string') {
2223
BLOB_URL_PREFIX = BlobModule.BLOB_URI_SCHEME + ':';
2324
if (typeof BlobModule.BLOB_URI_HOST === 'string') {
2425
BLOB_URL_PREFIX += `//${BlobModule.BLOB_URI_HOST}/`;

local-cli/templates/HelloWorld/_flowconfig

+9-6
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212
; For RN Apps installed via npm, "Libraries" folder is inside
1313
; "node_modules/react-native" but in the source repo it is in the root
1414
.*/Libraries/react-native/React.js
15-
.*/Libraries/react-native/ReactNative.js
15+
16+
; Ignore polyfills
17+
.*/Libraries/polyfills/.*
1618

1719
[include]
1820

1921
[libs]
2022
node_modules/react-native/Libraries/react-native/react-native-interface.js
21-
node_modules/react-native/flow
22-
flow/
23+
node_modules/react-native/flow/
2324

2425
[options]
2526
emoji=true
@@ -32,14 +33,16 @@ module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|we
3233

3334
suppress_type=$FlowIssue
3435
suppress_type=$FlowFixMe
36+
suppress_type=$FlowFixMeProps
37+
suppress_type=$FlowFixMeState
3538
suppress_type=$FixMe
3639

37-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-9]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
38-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-9]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
40+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
41+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
3942
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
4043
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
4144

4245
unsafe.enable_getters_and_setters=true
4346

4447
[version]
45-
^0.49.1
48+
^0.53.0

0 commit comments

Comments
 (0)