mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove redundant props from Picker
Summary: Props are being ignored on native side, let's get rid of them. Reviewed By: TheSavior Differential Revision: D17765185 fbshipit-source-id: d3625dd25d2e41a49e701d54fe9a7b74cd47786c
This commit is contained in:
committed by
Facebook Github Bot
parent
f580409919
commit
9cefc96e43
@@ -44,8 +44,6 @@ type RCTPickerIOSType = Class<
|
||||
$ReadOnly<{|
|
||||
items: $ReadOnlyArray<RCTPickerIOSItemType>,
|
||||
onChange: (event: PickerIOSChangeEvent) => void,
|
||||
onResponderTerminationRequest: () => boolean,
|
||||
onStartShouldSetResponder: () => boolean,
|
||||
selectedIndex: number,
|
||||
style?: ?TextStyleProp,
|
||||
testID?: ?string,
|
||||
@@ -119,8 +117,6 @@ class PickerIOS extends React.Component<Props, State> {
|
||||
items={this.state.items}
|
||||
selectedIndex={this.state.selectedIndex}
|
||||
onChange={this._onChange}
|
||||
onStartShouldSetResponder={() => true}
|
||||
onResponderTerminationRequest={() => false}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
|
||||
@@ -35,8 +35,6 @@ type RCTPickerIOSType = Class<
|
||||
$ReadOnly<{|
|
||||
items: $ReadOnlyArray<RCTPickerIOSItemType>,
|
||||
onChange: (event: PickerIOSChangeEvent) => void,
|
||||
onResponderTerminationRequest: () => boolean,
|
||||
onStartShouldSetResponder: () => boolean,
|
||||
selectedIndex: number,
|
||||
style?: ?TextStyleProp,
|
||||
testID?: ?string,
|
||||
|
||||
@@ -18,8 +18,6 @@ exports[`<Picker /> should render as <View> when mocked 1`] = `
|
||||
]
|
||||
}
|
||||
onChange={[Function]}
|
||||
onResponderTerminationRequest={[Function]}
|
||||
onStartShouldSetResponder={[Function]}
|
||||
selectedIndex={0}
|
||||
style={
|
||||
Array [
|
||||
@@ -51,8 +49,6 @@ exports[`<Picker /> should render as <View> when not mocked 1`] = `
|
||||
]
|
||||
}
|
||||
onChange={[Function]}
|
||||
onResponderTerminationRequest={[Function]}
|
||||
onStartShouldSetResponder={[Function]}
|
||||
selectedIndex={0}
|
||||
style={
|
||||
Array [
|
||||
|
||||
Reference in New Issue
Block a user