mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-07 04:05:01 +00:00
[fix] Picker.Item support for 'color' prop
Not well supported by browsers. Fix #810
This commit is contained in:
@@ -19,7 +19,8 @@ export default class PickerItem extends Component<Props> {
|
||||
};
|
||||
|
||||
render() {
|
||||
const { label, testID, value } = this.props;
|
||||
return createElement('option', { testID, value }, label);
|
||||
const { color, label, testID, value } = this.props;
|
||||
const style = { color };
|
||||
return createElement('option', { style, testID, value }, label);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user