n4kz / react-native-material-dropdown

Material dropdown with consistent behaviour on iOS and Android
Other
732 stars 597 forks source link

how to disable line at bottom of dropdown textfield? #230

Open sushant1408 opened 4 years ago

kashif-sk commented 4 years ago

pass the following prop lineWidth={0} to disable line at bottom of dropdown

twinkle039 commented 4 years ago

inputContainerStyle={{ borderBottomWidth: 0, }}

vivek2dx commented 4 years ago

Add following props to Dropdown: inputContainerStyle={{ padding: 15, borderBottomColor: 'transparent' }}

Eg: <Dropdown value={'All Activity'} itemColor={'#33475A'} useNativeDriver={true} inputContainerStyle={{ borderBottomColor: 'transparent' }} />

Saqib92 commented 3 years ago

nothing above is working.

P.S i am using react-native-material-dropdown-v2-fixed

Clumsynite commented 3 years ago

Try passing underlineColor='transparent' to Dropdown component

Saqib92 commented 3 years ago

Try passing underlineColor='transparent' to Dropdown component

It Worked. I have one more Question after selection of any option from dropdown how can I change color on selected value (not inside dropdown menu but in textfield.

Clumsynite commented 3 years ago

textColor prop should work

Saqib92 commented 3 years ago

textColor was Not working. I didn't get my expected result so I switched to react-native-picker