本机反应:有办法改变单选按钮的颜色吗?
react native: there is way to change color of radio button?
有没有办法给整个按钮内外都上色?因为它现在是白色的,外面是白色的,里面是蓝色的,但我希望它也是白色的。
我使用 react-native-simple-radio-button
你可以看到 link.. the link
import RadioForm, {
RadioButton,
RadioButtonInput,
RadioButtonLabel,
} from 'react-native-simple-radio-button';
<RadioForm
buttonColor={'white'}
animation={true}
labelHorizontal={true}
labelStyle={{
fontSize: 18,
left: 15,
color: 'white',
}}
buttonSize={20}
radio_props={sort_radio_props}
initial={3}
onPress={(value) => {
setSortRadio({ value: value });
}}
/>
使用 RadioForm 时可以设置 selectedButtonColor 属性
示例:selectedButtonColor = 'white'
有没有办法给整个按钮内外都上色?因为它现在是白色的,外面是白色的,里面是蓝色的,但我希望它也是白色的。
我使用 react-native-simple-radio-button
你可以看到 link.. the link
import RadioForm, {
RadioButton,
RadioButtonInput,
RadioButtonLabel,
} from 'react-native-simple-radio-button';
<RadioForm
buttonColor={'white'}
animation={true}
labelHorizontal={true}
labelStyle={{
fontSize: 18,
left: 15,
color: 'white',
}}
buttonSize={20}
radio_props={sort_radio_props}
initial={3}
onPress={(value) => {
setSortRadio({ value: value });
}}
/>
使用 RadioForm 时可以设置 selectedButtonColor 属性
示例:selectedButtonColor = 'white'