Skip to content

Commit

Permalink
0.87.0 in xplat/js
Browse files Browse the repository at this point in the history
Summary: allow-large-files

Reviewed By: samwgoldman

Differential Revision: D13230018

fbshipit-source-id: f07e2371a3b7382de0592cc7c7b20e7f4faa6889
  • Loading branch information
panagosg7 authored and facebook-github-bot committed Nov 29, 2018
1 parent 585f7b9 commit ef2084c
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ untyped-import
untyped-type-import

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

[version]
^0.86.0
^0.87.0
21 changes: 21 additions & 0 deletions Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ class DrawerLayoutAndroid extends React.Component<Props, State> {
return (
<AndroidDrawerLayout
{...props}
/* $FlowFixMe(>=0.87.0 site=react_native_android_fb) This comment
* suppresses an error found when Flow v0.87 was deployed. To see the
* error, delete this comment and run Flow. */
ref={this._nativeRef}
drawerWidth={this.props.drawerWidth}
drawerPosition={this.props.drawerPosition}
Expand Down Expand Up @@ -322,18 +325,30 @@ class DrawerLayoutAndroid extends React.Component<Props, State> {
* Native methods
*/
blur() {
/* $FlowFixMe(>=0.87.0 site=react_native_android_fb) This comment
* suppresses an error found when Flow v0.87 was deployed. To see the
* error, delete this comment and run Flow. */
nullthrows(this._nativeRef.current).blur();
}

focus() {
/* $FlowFixMe(>=0.87.0 site=react_native_android_fb) This comment
* suppresses an error found when Flow v0.87 was deployed. To see the
* error, delete this comment and run Flow. */
nullthrows(this._nativeRef.current).focus();
}

measure(callback: MeasureOnSuccessCallback) {
/* $FlowFixMe(>=0.87.0 site=react_native_android_fb) This comment
* suppresses an error found when Flow v0.87 was deployed. To see the
* error, delete this comment and run Flow. */
nullthrows(this._nativeRef.current).measure(callback);
}

measureInWindow(callback: MeasureInWindowOnSuccessCallback) {
/* $FlowFixMe(>=0.87.0 site=react_native_android_fb) This comment
* suppresses an error found when Flow v0.87 was deployed. To see the
* error, delete this comment and run Flow. */
nullthrows(this._nativeRef.current).measureInWindow(callback);
}

Expand All @@ -342,6 +357,9 @@ class DrawerLayoutAndroid extends React.Component<Props, State> {
onSuccess: MeasureLayoutOnSuccessCallback,
onFail?: () => void,
) {
/* $FlowFixMe(>=0.87.0 site=react_native_android_fb) This comment
* suppresses an error found when Flow v0.87 was deployed. To see the
* error, delete this comment and run Flow. */
nullthrows(this._nativeRef.current).measureLayout(
relativeToNativeNode,
onSuccess,
Expand All @@ -350,6 +368,9 @@ class DrawerLayoutAndroid extends React.Component<Props, State> {
}

setNativeProps(nativeProps: Object) {
/* $FlowFixMe(>=0.87.0 site=react_native_android_fb) This comment
* suppresses an error found when Flow v0.87 was deployed. To see the
* error, delete this comment and run Flow. */
nullthrows(this._nativeRef.current).setNativeProps(nativeProps);
}
}
Expand Down
3 changes: 3 additions & 0 deletions Libraries/Utilities/__tests__/setAndForwardRef-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ describe('setAndForwardRef', () => {

ReactTestRenderer.create(<TestComponentWithRef ref={createdRef} />);

/* $FlowFixMe(>=0.87.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.87 was deployed. To see the error, delete this
* comment and run Flow. */
const val = createdRef.current && createdRef.current.testFunc();

expect(innerFuncCalled).toBe(true);
Expand Down
2 changes: 0 additions & 2 deletions RNTester/js/TextInputExample.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,6 @@ class SelectionExample extends React.Component<
onChangeText={value => this.setState({value})}
onSelectionChange={this.onSelectionChange.bind(this)}
ref={textInput => (this._textInput = textInput)}
/* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was
* found when making Flow check .android.js files. */
selection={this.state.selection}
style={this.props.style}
value={this.state.value}
Expand Down
6 changes: 6 additions & 0 deletions ReactAndroid/src/androidTest/js/ScrollViewTestModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ type State = {|
|};

class ScrollViewTestApp extends React.Component<Props, State> {
/* $FlowFixMe(>=0.87.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.87 was deployed. To see the error, delete this comment
* and run Flow. */
scrollView = React.createRef();
state = getInitialState();

Expand Down Expand Up @@ -121,6 +124,9 @@ class ScrollViewTestApp extends React.Component<Props, State> {
}

class HorizontalScrollViewTestApp extends React.Component<Props, State> {
/* $FlowFixMe(>=0.87.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.87 was deployed. To see the error, delete this comment
* and run Flow. */
scrollView = React.createRef();
state = getInitialState();

Expand Down
1 change: 0 additions & 1 deletion jest/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const nodeOptions = babelRegisterOnly.config([nodeFiles]);

babelRegisterOnly([]);

/* $FlowFixMe(site=react_native_oss) */
const transformer = require('metro/src/reactNativeTransformer');
module.exports = {
process(src /*: string */, file /*: string */) {
Expand Down
1 change: 0 additions & 1 deletion local-cli/bundle/buildBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
const log = require('../util/log').out('bundle');
const Server = require('metro/src/Server');

/* $FlowFixMe(site=react_native_oss) */
const outputBundle = require('metro/src/shared/output/bundle');
const path = require('path');
const saveAssets = require('./saveAssets');
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.86.0
^0.87.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
"eslint-plugin-prettier": "2.6.0",
"eslint-plugin-react": "7.8.2",
"eslint-plugin-react-native": "3.5.0",
"flow-bin": "^0.86.0",
"flow-bin": "^0.87.0",
"jest": "24.0.0-alpha.6",
"jest-junit": "5.2.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 @@ -2590,10 +2590,10 @@ flat-cache@^1.2.1:
graceful-fs "^4.1.2"
write "^0.2.1"

flow-bin@^0.86.0:
version "0.86.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.86.0.tgz#153a28722b4dc13b7200c74b644dd4d9f4969a11"
integrity sha512-ulRvFH3ewGIYwg+qPk/OJXoe3Nhqi0RyR0wqgK0b1NzUDEC6O99zU39MBTickXvlrr6iwRO6Wm4lVGeDmnzbew==
flow-bin@^0.87.0:
version "0.87.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.87.0.tgz#fab7f984d8cc767e93fa9eb01cf7d57ed744f19d"
integrity sha512-mnvBXXZkUp4y6A96bR5BHa3q1ioIIN2L10w5osxJqagAakTXFYZwjl0t9cT3y2aCEf1wnK6n91xgYypQS/Dqbw==

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

0 comments on commit ef2084c

Please sign in to comment.