radio-buttons-react-native-expo
Advanced tools
Comparing version
{ | ||
"name": "radio-buttons-react-native-expo", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Animated radio buttons component for react native and Expo with accessibility", | ||
@@ -5,0 +5,0 @@ "main": "RadioButtonRN.js", |
@@ -119,3 +119,3 @@ import React from 'react'; | ||
let { activeIndex, fadeAnim, animations } = this.state; | ||
let { boxStyle, style, circleSize, textStyle, data, icon, activeColor, deactiveColor, boxActiveBgColor, boxDeactiveBgColor, box, textColor } = this.props; | ||
let { boxStyle, style, circleSize, textStyle, leftProductBoxStyle, centerProductBoxStyle, data, icon, activeColor, deactiveColor, boxActiveBgColor, boxDeactiveBgColor, box, textColor } = this.props; | ||
@@ -142,3 +142,3 @@ return ( | ||
> | ||
<View style={styles.leftProductBox}> | ||
<View style={[styles.leftProductBox, leftProductBoxStyle]}> | ||
<View style={[ icon ? styles.icon : styles.circle, { | ||
@@ -177,3 +177,3 @@ borderColor: activeIndex === index ? activeColor : deactiveColor, | ||
<View style={[styles.centerProductBox]}> | ||
<View style={[styles.centerProductBox, centerProductBoxStyle]}> | ||
<Text style={[{ | ||
@@ -243,2 +243,4 @@ color: textColor | ||
textStyle: PropTypes.object, | ||
leftProductBoxStyle: PropTypes.object, | ||
centerProductBoxStyle: PropTypes.object, | ||
initial: PropTypes.number, | ||
@@ -264,2 +266,4 @@ circleSize: PropTypes.number, | ||
textStyle: {}, | ||
leftProductBoxStyle: {}, | ||
centerProductBoxStyle: {}, | ||
initial: -1, | ||
@@ -266,0 +270,0 @@ circleSize: 18, |
14435
1.68%259
1.57%