react-native-simple-radio-button
Version:
simple and useful animated radio button component for React Native
65 lines (50 loc) • 914 B
JavaScript
var React = require('react');
var ReactNative = require('react-native');
var {
StyleSheet,
} = ReactNative;
var Style = StyleSheet.create({
radioForm: {
},
radioWrap: {
flexDirection: 'row',
marginBottom: 5,
},
radio: {
justifyContent: 'center',
alignItems: 'center',
width: 30,
height: 30,
alignSelf: 'center',
borderColor: '#2196f3',
borderRadius: 30,
},
radioLabel: {
paddingLeft: 10,
lineHeight: 20,
},
radioNormal: {
borderRadius: 10,
},
radioActive: {
width: 20,
height: 20,
backgroundColor: '#2196f3',
},
labelWrapStyle: {
flexDirection: 'row',
alignItems: 'center',
alignSelf: 'center'
},
labelVerticalWrap: {
flexDirection: 'column',
paddingLeft: 10,
},
labelVertical: {
paddingLeft: 0,
},
formHorizontal: {
flexDirection: 'row',
},
});
module.exports = Style;