Skip to content

Commit 165671e

Browse files
authored
Merge pull request hossein-zare#183 from dcangulo/bugfix/label-margin
Fix label margin.
2 parents 5ee1536 + 6ea4c02 commit 165671e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,13 +401,13 @@ class DropDownPicker extends React.Component {
401401
{this.state.choice.icon && ! multiple && this.state.choice.icon()}
402402
<Text style={[
403403
{ color: 'red' }, // default label color
404-
this.props.labelStyle,
405404
placeholderStyle, {opacity, flex: 1}, {
406405
marginLeft: (this.props.labelStyle.hasOwnProperty('textAlign') && this.props.labelStyle.textAlign === 'left') || ! this.props.labelStyle.hasOwnProperty('textAlign') ? 5 : 0,
407406
marginRight: (this.props.labelStyle.hasOwnProperty('textAlign') && this.props.labelStyle.textAlign === 'right') ? 5 : 0,
408407
},
409408
this.state.choice.label !== null && this.props.selectedLabelStyle,
410-
this.state.choice.icon ?? {marginLeft: 5}
409+
this.state.choice.icon ?? {marginLeft: 5},
410+
this.props.labelStyle
411411
]} {...this.props.labelProps}>
412412
{multiple ? (
413413
this.state.choice.length > 0 ? this.getNumberOfItems() : placeholder

0 commit comments

Comments
 (0)