File tree Expand file tree Collapse file tree 1 file changed +27
-26
lines changed
Expand file tree Collapse file tree 1 file changed +27
-26
lines changed Original file line number Diff line number Diff line change 8787 animation= {true }
8888>
8989 {/* To create radio buttons, loop through your array of options */ }
90- {radio_props .map ((obj , i ) => {
91- < RadioButton labelHorizontal= {true } key= {i} >
92- {/* You can set RadioButtonLabel before RadioButtonInput */ }
93- < RadioButtonInput
94- obj= {obj}
95- index= {i}
96- isSelected= {this .state .value3Index === i}
97- onPress= {onPress}
98- borderWidth= {1 }
99- buttonInnerColor= {' #e74c3c' }
100- buttonOuterColor= {this .state .value3Index === i ? ' #2196f3' : ' #000' }
101- buttonSize= {40 }
102- buttonOuterSize= {80 }
103- buttonStyle= {{}}
104- buttonWrapStyle= {{marginLeft: 10 }}
105- / >
106- < RadioButtonLabel
107- obj= {obj}
108- index= {i}
109- labelHorizontal= {true }
110- onPress= {onPress}
111- labelStyle= {{fontSize: 20 , color: ' #2ecc71' }}
112- labelWrapStyle= {{}}
113- / >
90+ {
91+ radio_props .map ((obj , i ) => (
92+ < RadioButton labelHorizontal= {true } key= {i} >
93+ {/* You can set RadioButtonLabel before RadioButtonInput */ }
94+ < RadioButtonInput
95+ obj= {obj}
96+ index= {i}
97+ isSelected= {this .state .value3Index === i}
98+ onPress= {onPress}
99+ borderWidth= {1 }
100+ buttonInnerColor= {' #e74c3c' }
101+ buttonOuterColor= {this .state .value3Index === i ? ' #2196f3' : ' #000' }
102+ buttonSize= {40 }
103+ buttonOuterSize= {80 }
104+ buttonStyle= {{}}
105+ buttonWrapStyle= {{marginLeft: 10 }}
106+ / >
107+ < RadioButtonLabel
108+ obj= {obj}
109+ index= {i}
110+ labelHorizontal= {true }
111+ onPress= {onPress}
112+ labelStyle= {{fontSize: 20 , color: ' #2ecc71' }}
113+ labelWrapStyle= {{}}
114+ / >
114115 < / RadioButton>
115- })}
116-
116+ ))
117+ }
117118< / RadioForm>
118119```
119120
You can’t perform that action at this time.
0 commit comments