@redu/react-native-component-layout
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -7,3 +7,3 @@ /** | ||
import React from "react"; | ||
import { View } from "react-native"; | ||
import { View, TouchableOpacity } from "react-native"; | ||
import PropTypes from "prop-types"; | ||
@@ -48,2 +48,3 @@ | ||
children, | ||
hr, | ||
horizontalRuleColor, | ||
@@ -53,2 +54,3 @@ horizontalRuleWidth, | ||
}) => { | ||
const SometimesTouchableView = onPress ? View : TouchableOpacity; | ||
const hrStyle = hr | ||
@@ -62,3 +64,3 @@ ? { | ||
return ( | ||
<View | ||
<SometimesTouchableView | ||
style={[ | ||
@@ -80,3 +82,3 @@ { | ||
{children} | ||
</View> | ||
</SometimesTouchableView> | ||
); | ||
@@ -106,2 +108,3 @@ }; | ||
align: PropTypes.string, | ||
hr: PropTypes.bool, | ||
horizontalRuleColor: PropTypes.string, | ||
@@ -108,0 +111,0 @@ horizontalRuleWidth: PropTypes.number |
@@ -9,3 +9,3 @@ /** | ||
import PropTypes from "prop-types"; | ||
import Wrap from "./Wrap"; | ||
import Break from "./Break"; | ||
@@ -17,3 +17,2 @@ /** | ||
* @param color | ||
* @param confirmColor | ||
* @param textColor | ||
@@ -59,5 +58,5 @@ * @param textSize | ||
return ( | ||
<Wrap onPress={onPress} all={0} style={buttonStyle} {...props}> | ||
<Break onPress={onPress} all={0} style={buttonStyle} {...props}> | ||
<Text style={textStyle}>{text}</Text> | ||
</Wrap> | ||
</Break> | ||
); | ||
@@ -64,0 +63,0 @@ }; |
@@ -31,3 +31,3 @@ { | ||
"description": "Layout components", | ||
"gitHead": "b15354207f1e4b0a0ff2dbccfc7f32d930b43617", | ||
"gitHead": "0c100e88176f60c898761607628620c8535fe863", | ||
"license": "ISC", | ||
@@ -39,3 +39,3 @@ "main": "index.js", | ||
}, | ||
"version": "1.0.4" | ||
"version": "1.0.5" | ||
} |
@@ -21,2 +21,3 @@ /** | ||
* @param strikethrough | ||
* @param align | ||
* @param url | ||
@@ -36,2 +37,3 @@ * @param style | ||
strikethrough, | ||
align, | ||
url, | ||
@@ -56,2 +58,3 @@ style, | ||
fontStyle: italic ? "italic" : "normal", | ||
textAlign: align, | ||
textDecorationLine, | ||
@@ -82,2 +85,3 @@ color | ||
strikethrough: PropTypes.bool, | ||
align: PropTypes.string, | ||
style: PropTypes.any | ||
@@ -84,0 +88,0 @@ }; |
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
9131
349