Skip to content

Commit 11fa573

Browse files
authored
Update NativePicker.js
1 parent 61320b4 commit 11fa573

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/picker/NativePicker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class NativePicker extends BaseComponent {
100100
};
101101

102102
render() {
103-
const {renderPicker, customPickerProps, testID} = this.props;
103+
const {renderPicker, customPickerProps, testID, forwardedRef} = this.props;
104104

105105
if (_.isFunction(renderPicker)) {
106106
const {selectedValue} = this.state;
@@ -118,6 +118,7 @@ class NativePicker extends BaseComponent {
118118
const label = this.getLabel();
119119
return (
120120
<TextField
121+
ref={forwardedRef}
121122
color={Colors.grey10}
122123
{...textInputProps}
123124
value={label}

0 commit comments

Comments
 (0)