moschan / react-native-simple-radio-button

Simple and handy animated radio button component for React Native
MIT License
453 stars 130 forks source link

rtl radio #163

Open sam9010 opened 3 years ago

sam9010 commented 3 years ago

I want to show label in left and radio in right

plz help me

ChetanBains commented 3 years ago

Hi, @sam9010 Can you elaborate on the issue? You can set RadioButtonLabel before RadioButtonInput.

moGeekHex commented 2 years ago

Hi, @sam9010 Can you elaborate on the issue? You can set RadioButtonLabel before RadioButtonInput.

how ?

sam9010 commented 2 years ago

my sample code: <View style={{flex:1}}> <View style={{flex:0.2}}> <Text allowFontScaling={false} style={{fontFamily:'font',}}>{strings.cancellation}</Text> </View> <View style={{flex:0.8,alignItems:'center',}}> <RadioForm style={{fontFamily:'font',}} radioStyle={{paddingRight: 20}} radio_props={this.state.radioList_cancellation} initial={this.state.radioIndex_cancellation} formHorizontal={true} labelHorizontal={false} buttonColor={strings.color_app} selectedButtonColor={this.state.color} animation={true} onPress={(value,index) => {this.setRadio_cancellation(value,index)}} /> </View></View>

and my import is:

import RadioForm from 'react-native-simple-radio-button';