Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ class Example extends Component {
labelExtractor | Extract label from item (args: item, index) | Function | ({ label }) => label
propsExtractor | Extract props from item (args: item, index) | Function | () => null
onChangeText | Selection callback (args: value, index, data) | Function | -
lineWidth | Text field underline width | Number | 0.5

Other [TextField][textfield], [TextInput][textinput] and [TouchableWithoutFeedback][touchable] properties will also work

Expand Down
5 changes: 5 additions & 0 deletions src/components/dropdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ export default class Dropdown extends PureComponent {
],

useNativeDriver: false,

lineWidth: 0.5,
};

static propTypes = {
Expand Down Expand Up @@ -153,6 +155,8 @@ export default class Dropdown extends PureComponent {
supportedOrientations: PropTypes.arrayOf(PropTypes.string),

useNativeDriver: PropTypes.bool,

lineWidth: PropTypes.number
};

constructor(props) {
Expand Down Expand Up @@ -510,6 +514,7 @@ export default class Dropdown extends PureComponent {

{...props}

lineWidth={this.props.lineWidth}
value={title}
editable={false}
onChangeText={undefined}
Expand Down