From 810064d44ee9b8db149ead95e9f3a3b8d66bf28a Mon Sep 17 00:00:00 2001 From: Curtis Menmuir Date: Fri, 6 Mar 2020 13:15:28 +0000 Subject: [PATCH 1/2] Added lineWidth prop --- src/components/dropdown/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/dropdown/index.js b/src/components/dropdown/index.js index b1e65a1f..73593f89 100644 --- a/src/components/dropdown/index.js +++ b/src/components/dropdown/index.js @@ -76,6 +76,8 @@ export default class Dropdown extends PureComponent { ], useNativeDriver: false, + + lineWidth: 0.5, }; static propTypes = { @@ -153,6 +155,8 @@ export default class Dropdown extends PureComponent { supportedOrientations: PropTypes.arrayOf(PropTypes.string), useNativeDriver: PropTypes.bool, + + lineWidth: PropTypes.number }; constructor(props) { @@ -510,6 +514,7 @@ export default class Dropdown extends PureComponent { {...props} + lineWidth={this.props.lineWidth} value={title} editable={false} onChangeText={undefined} From 6583cf0f0486de9a12711212ff4a4b788041e490 Mon Sep 17 00:00:00 2001 From: Curtis Menmuir Date: Fri, 6 Mar 2020 15:16:33 +0000 Subject: [PATCH 2/2] Updated README --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index be8f68e4..668f4537 100644 --- a/readme.md +++ b/readme.md @@ -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