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:
Samuel Susla
2019-10-07 11:34:50 -07:00
committed by Facebook Github Bot
parent f580409919
commit 9cefc96e43
3 changed files with 0 additions and 10 deletions
@@ -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 [