Skip to content

Commit c1d9b98

Browse files
committed
Adjusted default props for base component
1 parent d85c043 commit c1d9b98

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/dropdown/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ export default class Dropdown extends PureComponent {
3333
absoluteRTLLayout: false,
3434

3535
dropdownOffset: {
36-
top: 32
37-
/* XXX: Should be fixed in TextField */
38-
+ Platform.select({ ios: 1, android: 2 }),
36+
top: 32,
3937
left: 0,
4038
},
4139

@@ -61,7 +59,6 @@ export default class Dropdown extends PureComponent {
6159
animationDuration: 225,
6260

6361
fontSize: 16,
64-
labelHeight: 32,
6562

6663
textColor: 'rgba(0, 0, 0, .87)',
6764
itemColor: 'rgba(0, 0, 0, .54)',
@@ -481,6 +478,7 @@ export default class Dropdown extends PureComponent {
481478
data,
482479
renderBase,
483480
labelExtractor,
481+
dropdownOffset,
484482
renderAccessory = this.renderAccessory,
485483
} = this.props;
486484

@@ -505,6 +503,9 @@ export default class Dropdown extends PureComponent {
505503

506504
return (
507505
<TextField
506+
label=''
507+
labelHeight={dropdownOffset.top - Platform.select({ ios: 1, android: 2 })}
508+
508509
{...props}
509510

510511
value={title}

0 commit comments

Comments
 (0)