Skip to content

Commit efd2f81

Browse files
authored
fix: clear warning for picker web (#162)
1 parent 8bed73f commit efd2f81

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

js/Picker.web.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ type PickerProps = {
2323
onValueChange?: (number | string, number) => void,
2424
selectedValue?: number | string,
2525
style?: ViewStyleProp,
26+
/**
27+
* dropdownIconColor
28+
* Not used for Web.
29+
*/
30+
dropdownIconColor?: string,
2631
/* compat */
2732
itemStyle?: TextStyleProp,
2833
mode?: string,
@@ -31,7 +36,9 @@ type PickerProps = {
3136

3237
const myCreateElement = createElement || unstable_createElement;
3338

34-
const Select = (props: any) => myCreateElement('select', props);
39+
const Select = forwardRef((props: any, forwardedRef) =>
40+
myCreateElement('select', props),
41+
);
3542

3643
const Picker = forwardRef<PickerProps, *>((props, forwardedRef) => {
3744
const {
@@ -41,6 +48,7 @@ const Picker = forwardRef<PickerProps, *>((props, forwardedRef) => {
4148
itemStyle,
4249
mode,
4350
prompt,
51+
dropdownIconColor,
4452
...other
4553
} = props;
4654

0 commit comments

Comments
 (0)