Skip to content

Commit

Permalink
Deploy Flow v0.85 to xplat/js
Browse files Browse the repository at this point in the history
Reviewed By: fishythefish

Differential Revision: D12898653

fbshipit-source-id: 2ed11ce569600fe4c12528939a350dd827c9a29a
  • Loading branch information
samwgoldman authored and facebook-github-bot committed Nov 2, 2018
1 parent fb5f2d2 commit 50d8e65
Show file tree
Hide file tree
Showing 15 changed files with 57 additions and 7 deletions.
3 changes: 3 additions & 0 deletions js/ActivityIndicatorExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class ToggleAnimatingActivityIndicator extends Component<
> {
_timer: Timer;

/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.85 was deployed. To see the error, delete this comment
* and run Flow. */
constructor(props) {
super(props);
this.state = {
Expand Down
3 changes: 3 additions & 0 deletions js/AnimatedExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ exports.examples = [
}
}
class FadeInExample extends React.Component<$FlowFixMeProps, any> {
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an
* error found when Flow v0.85 was deployed. To see the error, delete
* this comment and run Flow. */
constructor(props) {
super(props);
this.state = {
Expand Down
3 changes: 3 additions & 0 deletions js/ImageEditingExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ class SquareImageCropper extends React.Component<
_isMounted: boolean;
_transformData: ImageCropData;

/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.85 was deployed. To see the error, delete this comment
* and run Flow. */
constructor(props) {
super(props);
this._isMounted = true;
Expand Down
3 changes: 3 additions & 0 deletions js/NativeAnimationsExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ class TrackingExample extends React.Component<
this.state.toJS.setValue(nextValue);
};

/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.85 was deployed. To see the error, delete this comment
* and run Flow. */
renderBlock = (anim, dest) => [
<Animated.View
key="line"
Expand Down
3 changes: 3 additions & 0 deletions js/ProgressViewIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ class ProgressViewExample extends React.Component<Props, State> {
this._rafId = requestAnimationFrame(() => this.updateProgress());
};

/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.85 was deployed. To see the error, delete this comment
* and run Flow. */
getProgress = offset => {
const progress = this.state.progress + offset;
return Math.sin(progress % Math.PI) % 1;
Expand Down
4 changes: 0 additions & 4 deletions js/RNTesterApp.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ class RNTesterApp extends React.Component<Props, RNTesterNavigationState> {
_renderDrawerContent = () => {
return (
<View style={styles.drawerContentWrapper}>
{/* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was
* found when making Flow check .android.js files. */}
<RNTesterExampleList
list={RNTesterList}
displayTitleRow={true}
Expand Down Expand Up @@ -188,8 +186,6 @@ class RNTesterApp extends React.Component<Props, RNTesterNavigationState> {
style={styles.toolbar}
title="RNTester"
/>
{/* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was
* found when making Flow check .android.js files. */}
<RNTesterExampleList
onNavigate={this._handleAction}
list={RNTesterList}
Expand Down
3 changes: 0 additions & 3 deletions js/RNTesterApp.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ class RNTesterApp extends React.Component<Props, RNTesterNavigationState> {
return (
<View style={styles.exampleContainer}>
<Header title="RNTester" />
{/* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This
* comment suppresses an error when upgrading Flow's support for
* React. To see the error delete this comment and run Flow. */}
<RNTesterExampleList
onNavigate={this._handleAction}
list={RNTesterList}
Expand Down
3 changes: 3 additions & 0 deletions js/RNTesterExampleList.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ const ItemSeparator = ({highlighted}) => (
<View style={highlighted ? styles.separatorHighlighted : styles.separator} />
);

/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.85 was deployed. To see the error, delete this comment
* and run Flow. */
RNTesterExampleList = RNTesterStatePersister.createContainer(
RNTesterExampleList,
{
Expand Down
3 changes: 3 additions & 0 deletions js/RNTesterSettingSwitchRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ const styles = StyleSheet.create({
justifyContent: 'space-between',
},
});
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.85 was deployed. To see the error, delete this comment
* and run Flow. */
RNTesterSettingSwitchRow = RNTesterStatePersister.createContainer(
RNTesterSettingSwitchRow,
{
Expand Down
3 changes: 3 additions & 0 deletions js/ScrollViewExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ if (Platform.OS === 'ios') {
let itemCount = 6;
class AppendingList extends React.Component<{}, *> {
state = {
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses
* an error found when Flow v0.85 was deployed. To see the error,
* delete this comment and run Flow. */
items: [...Array(itemCount)].map((_, ii) => (
<Thumb msg={`Item ${ii}`} />
)),
Expand Down
3 changes: 3 additions & 0 deletions js/ScrollViewSimpleExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class ScrollViewSimpleExample extends React.Component<{}> {
static description =
'Component that enables scrolling through child components.';

/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.85 was deployed. To see the error, delete this comment
* and run Flow. */
makeItems = (nItems: number, styles): Array<any> => {
const items = [];
for (let i = 0; i < nItems; i++) {
Expand Down
3 changes: 3 additions & 0 deletions js/ShareExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class ShareMessageExample extends React.Component<$FlowFixMeProps, any> {
_shareText: Function;
_showResult: Function;

/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.85 was deployed. To see the error, delete this comment
* and run Flow. */
constructor(props) {
super(props);

Expand Down
3 changes: 3 additions & 0 deletions js/TVEventHandlerExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class TVEventHandlerView extends React.Component<
lastEventType: string,
},
> {
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.85 was deployed. To see the error, delete this comment
* and run Flow. */
constructor(props) {
super(props);
this.state = {
Expand Down
6 changes: 6 additions & 0 deletions js/TextInputExample.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ class TextEventsExample extends React.Component<{}, $FlowFixMeState> {
}

class RewriteExample extends React.Component<$FlowFixMeProps, $FlowFixMeState> {
/* $FlowFixMe(>=0.85.0 site=react_native_android_fb) This comment suppresses
* an error found when Flow v0.85 was deployed. To see the error, delete this
* comment and run Flow. */
constructor(props) {
super(props);
this.state = {text: ''};
Expand Down Expand Up @@ -113,6 +116,9 @@ class TokenizedTextExample extends React.Component<
$FlowFixMeProps,
$FlowFixMeState,
> {
/* $FlowFixMe(>=0.85.0 site=react_native_android_fb) This comment suppresses
* an error found when Flow v0.85 was deployed. To see the error, delete this
* comment and run Flow. */
constructor(props) {
super(props);
this.state = {text: 'Hello #World'};
Expand Down
18 changes: 18 additions & 0 deletions js/TextInputExample.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ class TextEventsExample extends React.Component<{}, $FlowFixMeState> {
}

class TextInputAccessoryViewExample extends React.Component<{}, *> {
/* $FlowFixMe(>=0.85.0 site=react_native_ios_fb) This comment suppresses an
* error found when Flow v0.85 was deployed. To see the error, delete this
* comment and run Flow. */
constructor(props) {
super(props);
this.state = {text: 'Placeholder Text'};
Expand Down Expand Up @@ -121,6 +124,9 @@ class TextInputAccessoryViewExample extends React.Component<{}, *> {
}

class RewriteExample extends React.Component<$FlowFixMeProps, any> {
/* $FlowFixMe(>=0.85.0 site=react_native_ios_fb) This comment suppresses an
* error found when Flow v0.85 was deployed. To see the error, delete this
* comment and run Flow. */
constructor(props) {
super(props);
this.state = {text: ''};
Expand Down Expand Up @@ -153,6 +159,9 @@ class RewriteExampleInvalidCharacters extends React.Component<
$FlowFixMeProps,
any,
> {
/* $FlowFixMe(>=0.85.0 site=react_native_ios_fb) This comment suppresses an
* error found when Flow v0.85 was deployed. To see the error, delete this
* comment and run Flow. */
constructor(props) {
super(props);
this.state = {text: ''};
Expand All @@ -174,6 +183,9 @@ class RewriteExampleInvalidCharacters extends React.Component<
}

class RewriteExampleKana extends React.Component<$FlowFixMeProps, any> {
/* $FlowFixMe(>=0.85.0 site=react_native_ios_fb) This comment suppresses an
* error found when Flow v0.85 was deployed. To see the error, delete this
* comment and run Flow. */
constructor(props) {
super(props);
this.state = {text: ''};
Expand All @@ -195,6 +207,9 @@ class RewriteExampleKana extends React.Component<$FlowFixMeProps, any> {
}

class SecureEntryExample extends React.Component<$FlowFixMeProps, any> {
/* $FlowFixMe(>=0.85.0 site=react_native_ios_fb) This comment suppresses an
* error found when Flow v0.85 was deployed. To see the error, delete this
* comment and run Flow. */
constructor(props) {
super(props);
this.state = {text: ''};
Expand All @@ -216,6 +231,9 @@ class SecureEntryExample extends React.Component<$FlowFixMeProps, any> {
}

class TokenizedTextExample extends React.Component<$FlowFixMeProps, any> {
/* $FlowFixMe(>=0.85.0 site=react_native_ios_fb) This comment suppresses an
* error found when Flow v0.85 was deployed. To see the error, delete this
* comment and run Flow. */
constructor(props) {
super(props);
this.state = {text: 'Hello #World'};
Expand Down

0 comments on commit 50d8e65

Please sign in to comment.