[fix] Picker.Item support for 'color' prop

Not well supported by browsers.

Fix #810
This commit is contained in:
Nicolas Gallagher
2018-04-08 11:43:20 -07:00
parent 2050730b77
commit 1aec803086
3 changed files with 13 additions and 4 deletions
+3 -2
View File
@@ -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);
}
}