From 69067314a3ae240d9c9bf0e8d07cfa1563172016 Mon Sep 17 00:00:00 2001 From: Lidor Dafna <66782556+lidord-wix@users.noreply.github.com> Date: Thu, 13 May 2021 16:10:40 +0300 Subject: [PATCH] Fix/ Pass testID to native PickerDialog (#1304) * Fix/ Pass testID to native PickerDialog * update testID --- src/components/picker/PickerDialog.android.js | 4 ++-- src/components/picker/PickerDialog.ios.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/picker/PickerDialog.android.js b/src/components/picker/PickerDialog.android.js index ad7c33496c..a6ac3bdcae 100644 --- a/src/components/picker/PickerDialog.android.js +++ b/src/components/picker/PickerDialog.android.js @@ -69,12 +69,12 @@ class PickerDialog extends BaseComponent { } renderPicker() { - const {children, onValueChange, selectedValue, renderNativePicker, wheelPickerProps} = this.props; + const {children, onValueChange, selectedValue, renderNativePicker, wheelPickerProps, testID} = this.props; if (_.isFunction(renderNativePicker)) { return renderNativePicker(this.props); } return ( - + {children} ); diff --git a/src/components/picker/PickerDialog.ios.js b/src/components/picker/PickerDialog.ios.js index e79ade1eae..8d0c1bfc4f 100644 --- a/src/components/picker/PickerDialog.ios.js +++ b/src/components/picker/PickerDialog.ios.js @@ -40,12 +40,12 @@ class PickerDialog extends BaseComponent { } renderPicker() { - const {children, onValueChange, selectedValue, renderNativePicker, pickerStyle} = this.props; + const {children, onValueChange, selectedValue, renderNativePicker, pickerStyle, testID} = this.props; if (_.isFunction(renderNativePicker)) { return renderNativePicker(this.props); } return ( - + {children} );