gcanti / tcomb-form-native

Forms library for react-native
MIT License
3.14k stars 457 forks source link

Use `SegmentedControlIOS` instead of `Picker` for less than 5 options. #209

Open alvaromb opened 8 years ago

alvaromb commented 8 years ago

According to recent research, it's better to use segmented controls instead of pickers if possible.

We could support this behaviour out of the box or make it configurable for any t.enums options.

What do you think @gcanti ?

gcanti commented 8 years ago

Not sure but I think you can already do that with custom templates and / or factories

alvaromb commented 8 years ago

I know. The thing is to provide a built-in factory/template inside the library.

Hitabis commented 7 years ago

@gcanti any plans to offer segmented controls in tcomb form native?

gcanti commented 7 years ago

@Hitabis sorry I'm not following this library anymore 'cause I'm not a mobile developer, maybe @alvaromb or @javiercr could shed some light

alvaromb commented 7 years ago

It's on my roadmap, but I haven't found time to implement it yet @Hitabis.