Skip to content

Commit 5dababd

Browse files
authored
fix: issue-180 (#189)
1 parent e9c4299 commit 5dababd

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

js/PickerIOS.ios.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ type RNCPickerIOSItemType = $ReadOnly<{|
3535
label: ?Label,
3636
value: ?(number | string),
3737
textColor: ?number,
38+
testID: ?string,
3839
|}>;
3940

4041
type RNCPickerIOSType = Class<
@@ -97,6 +98,7 @@ class PickerIOS extends React.Component<Props, State> {
9798
value: child.props.value,
9899
label: child.props.label,
99100
textColor: processColor(child.props.color),
101+
testID: child.props.testID,
100102
});
101103
});
102104
return {selectedIndex, items};

js/PickerMacOS.macos.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ type RNCPickerMacOSItemType = $ReadOnly<{|
3535
label: ?Label,
3636
value: ?(number | string),
3737
textColor: ?number,
38+
testID: ?string,
3839
|}>;
3940

4041
type RNCPickerMacOSType = Class<
@@ -69,6 +70,7 @@ type ItemProps = $ReadOnly<{|
6970
label: ?Label,
7071
value?: ?(number | string),
7172
color?: ?ColorValue,
73+
testID: ?string,
7274
|}>;
7375

7476
const PickerMacOSItem = (props: ItemProps) => {
@@ -96,6 +98,7 @@ class PickerMacOS extends React.Component<Props, State> {
9698
value: child.props.value,
9799
label: child.props.label,
98100
textColor: processColor(child.props.color),
101+
testID: child.props.testID,
99102
});
100103
});
101104
return {selectedIndex, items};

js/RNCPickerNativeComponent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type RNCPickerIOSTypeItemType = $ReadOnly<{|
2626
label: ?Label,
2727
value: ?(number | string),
2828
textColor: ?number,
29+
testID: ?string,
2930
|}>;
3031

3132
type Label = Stringish | number;

0 commit comments

Comments
 (0)