Remove react-native.js.flow

Summary:
We've enabled getters in .flowconfig, so Flow will now understand react-native.js. We no longer need to maintain a separate file for Flow.

cc bestander
Closes https://github.com/facebook/react-native/pull/9892

Differential Revision: D3862560

Pulled By: bestander

fbshipit-source-id: 9efb66bc885dbac80c18b4b5e3cf5362495928a9
This commit is contained in:
Satyajit Sahoo
2016-09-14 02:55:24 -07:00
committed by Facebook Github Bot 4
parent f4e3e19f8c
commit 3e153b2a5b
5 changed files with 2 additions and 146 deletions

View File

@@ -33,7 +33,7 @@ var {
TouchableHighlight,
View,
} = ReactNative;
// $FlowFixMe Picker.Item not properly defined for flow.
const Item = Picker.Item;
exports.displayName = (undefined: ?string);

View File

@@ -50,7 +50,6 @@ class Tester extends React.Component {
toValue: this.current,
};
// $FlowIssue #0000000
Animated[this.props.type](this.state.native, { ...config, useNativeDriver: true }).start();
Animated[this.props.type](this.state.js, { ...config, useNativeDriver: false }).start();
};

View File

@@ -33,7 +33,7 @@ const {
Text,
TouchableWithoutFeedback,
} = ReactNative;
// $FlowFixMe found when converting React.createClass to ES6
const Item = Picker.Item;
class PickerExample extends React.Component {

View File

@@ -66,9 +66,7 @@ var SwipeableListViewSimpleExample = React.createClass({
dataSource={this.state.dataSource}
maxSwipeDistance={100}
renderQuickActions={
/* $FlowFixMe(>=0.31.0) */
(rowData: Object, sectionID: string, rowID: string) => {
/* $FlowFixMe(>=0.31.0) */
return (<View style={styles.actionsContainer}>
<TouchableHighlight onPress={() => {
Alert.alert('Tips', 'You could do something with this row: ' + rowData.text);