Skip to content

Commit 02fff78

Browse files
authored
Merge pull request #93 from TakayukiCho/patch-1
fix Pro feature example
2 parents d06d898 + c30269b commit 02fff78

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

README.md

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -87,33 +87,34 @@ Pro
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

0 commit comments

Comments
 (0)