sramezani/radio-buttons-react-native

How to push 2 radio button in 1 line

hiennm0406 opened this issue · 1 comments

How to push 2 radio button together in 1 line

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}}
/>