sramezani / radio-buttons-react-native

Animated radio buttons component for react native
MIT License
84 stars 41 forks source link

How to push 2 radio button in 1 line #20

Open hiennm0406 opened 3 years ago

hiennm0406 commented 3 years ago

How to push 2 radio button together in 1 line

iphonic commented 3 years ago

You can use properties style boxStyle and textStyle to play with see below how

<RadioButtonRN style={{flexWrap:'wrap',flexDirection:"row",alignItems:"center",justifyContent:"center"}} data={data} animationTypes={['pulse']} initial={1} circleSize={20} box={false} selectedBtn={(e) => console.log(e)} activeColor={appFonts.Color.THEMEGREEN} boxStyle={{flex:1,alignItems:"center"}} textStyle={{marginLeft:5,fontFamily: appFonts.AppFonts.medium, fontSize: appFonts.FontSize.FontSize14, color: appFonts.Color.THEMECOLOR}} />