Skip to content

Commit 188f886

Browse files
Inbal-Tishlidord-wix
authored andcommitted
Picker - remove commented out code related to 'renderNativePicker' deprecated prop
1 parent 2d5a063 commit 188f886

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/components/picker/NativePicker.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,8 @@ class NativePicker extends Component {
6565

6666
renderPicker = () => {
6767
const {selectedValue} = this.state;
68-
const {children, /* renderNativePicker, */ pickerStyle, wheelPickerProps, testID} = this.props;
69-
// if (_.isFunction(renderNativePicker)) {
70-
// return renderNativePicker(this.props);
71-
// }
68+
const {children, pickerStyle, wheelPickerProps, testID} = this.props;
69+
7270
return (
7371
<WheelPicker
7472
style={pickerStyle}

src/components/picker/types.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,6 @@ export type PickerBaseProps = Omit<NewTextFieldProps, 'value' | 'onChange'> &
155155
* Use wheel picker instead of a list picker
156156
*/
157157
useWheelPicker?: boolean;
158-
// /**
159-
// * Callback for rendering a custom native picker inside the dialog (relevant to native picker only)
160-
// */
161-
// renderNativePicker?: () => React.ReactElement;
162158
/**
163159
* Pass props to the list component that wraps the picker options (allows to control FlatList behavior)
164160
*/

0 commit comments

Comments
 (0)