@redu/react-native-component-layout
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -14,6 +14,4 @@ /** | ||
* | ||
* @param text | ||
* @param children | ||
* @param color | ||
* @param textColor | ||
* @param textSize | ||
* @param activityIndicatorColour | ||
@@ -30,4 +28,2 @@ * @param radius | ||
color, | ||
textColor, | ||
textSize, | ||
activityIndicatorColour, | ||
@@ -41,8 +37,6 @@ radius, | ||
backgroundColor: color, | ||
borderRadius: radius | ||
borderRadius: radius, | ||
justifyContent: "center", | ||
alignItems: "center" | ||
}; | ||
const textStyle = { | ||
color: textColor, | ||
fontSize: textSize | ||
}; | ||
@@ -60,3 +54,3 @@ /* If loading is set to true, we place an activity indicator in the button */ | ||
<Break onPress={onPress} all={0} style={buttonStyle} {...props}> | ||
<Text style={textStyle}>{children}</Text> | ||
{children} | ||
</Break> | ||
@@ -71,6 +65,4 @@ ); | ||
Button.propTypes = { | ||
text: PropTypes.string, | ||
children: PropTypes.any, | ||
color: PropTypes.string, | ||
textColor: PropTypes.string, | ||
textSize: PropTypes.number, | ||
activityIndicatorColour: PropTypes.string, | ||
@@ -77,0 +69,0 @@ radius: PropTypes.number, |
@@ -31,3 +31,3 @@ { | ||
"description": "Layout components", | ||
"gitHead": "9fa036c43fd5c9875b686e58cf26867ec3d59775", | ||
"gitHead": "62c0bbea34b2a911348b73c68299910c437b89d5", | ||
"license": "ISC", | ||
@@ -39,3 +39,3 @@ "main": "index.js", | ||
}, | ||
"version": "1.0.7" | ||
"version": "1.0.8" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9001
343