@redu/react-native-component-layout
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -31,3 +31,3 @@ { | ||
"description": "Layout components", | ||
"gitHead": "62c0bbea34b2a911348b73c68299910c437b89d5", | ||
"gitHead": "c50537353417790b17d48921726aed1ee265c928", | ||
"license": "ISC", | ||
@@ -39,3 +39,3 @@ "main": "index.js", | ||
}, | ||
"version": "1.0.8" | ||
"version": "1.0.9" | ||
} |
15
Text.js
@@ -10,2 +10,3 @@ /** | ||
import PropTypes from "prop-types"; | ||
import Break from "./Break"; | ||
@@ -44,6 +45,12 @@ /** | ||
// Build text decoration with multiple options | ||
let textDecorationLine = underline ? "underline " : ""; | ||
textDecorationLine = strikethrough | ||
? `${textDecorationLine} line-through` | ||
: textDecorationLine; | ||
let textDecorationLine = "none"; | ||
if (underline || strikethrough) { | ||
textDecorationLine = ""; | ||
textDecorationLine = underline ? "underline" : textDecorationLine; | ||
textDecorationLine = strikethrough | ||
? `${textDecorationLine} line-through` | ||
: textDecorationLine; | ||
} | ||
const optionalLink = url ? { onPress: () => Linking.openURL(url) } : null; | ||
@@ -50,0 +57,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
9155
348