Tcomb-form-native: Cannot create border of Picker Container in Android

Created on 24 Jan 2018  路  2Comments  路  Source: gcanti/tcomb-form-native

Version

  • tcomb-form-native v0.6.11
  • react-native v0.50.4

Expected behaviour

I want to put a border around the Picker Container.

Actual behaviour

By default, it has no Border. I tried to customize the style and add border width on Picker related styles but still not working. I can customize borders of the textinputs, text, and datepickerandroid. But no luck on Picker Android.

I think Picker component should be wrapped by another view instead of directly under formGroupStyle.

image

Most helpful comment

Nevermind my issue above. I created a custom template just to allow borders on Picker in Android as below:

<View style={formGroupStyle}> {label} <View style={specialPickerWrapperStyle}> <Picker accessibilityLabel={locals.label} ref="input" style={selectStyle} selectedValue={locals.value} onValueChange={locals.onChange} help={locals.help} enabled={locals.enabled} mode={locals.mode} prompt={locals.prompt} itemStyle={locals.itemStyle} > {options} </Picker> </View> {help} {error} </View>

All 2 comments

Nevermind my issue above. I created a custom template just to allow borders on Picker in Android as below:

<View style={formGroupStyle}> {label} <View style={specialPickerWrapperStyle}> <Picker accessibilityLabel={locals.label} ref="input" style={selectStyle} selectedValue={locals.value} onValueChange={locals.onChange} help={locals.help} enabled={locals.enabled} mode={locals.mode} prompt={locals.prompt} itemStyle={locals.itemStyle} > {options} </Picker> </View> {help} {error} </View>

use touchable opacity

Was this page helpful?
0 / 5 - 0 ratings

Related issues

muthuraman007 picture muthuraman007  路  4Comments

flyingace picture flyingace  路  5Comments

abdelghafourzguindou picture abdelghafourzguindou  路  4Comments

albertogugliotta picture albertogugliotta  路  3Comments

sibelius picture sibelius  路  4Comments