mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 03:50:11 +08:00
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:
committed by
Facebook Github Bot 4
parent
f4e3e19f8c
commit
3e153b2a5b
@@ -33,7 +33,7 @@ var {
|
||||
TouchableHighlight,
|
||||
View,
|
||||
} = ReactNative;
|
||||
// $FlowFixMe Picker.Item not properly defined for flow.
|
||||
|
||||
const Item = Picker.Item;
|
||||
|
||||
exports.displayName = (undefined: ?string);
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user