FaridSafi / react-native-gifted-form

📝 « One React-Native form component to rule them all »
MIT License
1.44k stars 214 forks source link

Display OptionWidgets all Horizontally in one line #66

Open KishPatel1996 opened 8 years ago

KishPatel1996 commented 8 years ago

Is there a way to display options widgets in a selectwidget horizontally? I am not sure which style I must change in selectwidget to get this to work.

Something like below

<GiftedForm.SelectWidget name='direction' title="Direction" multiple={false} widgetStyle= {{flexDirection: 'row'}}>
          <GiftedForm.OptionWidget title="A"   style= {{width: width / 2}}/>
          <GiftedForm.OptionWidget title="B"  style= {{width: width / 2}} />
        </GiftedForm.SelectWidget> 

Thanks!