Introduces Home component redesign

This commit is contained in:
mashazyu
2020-03-24 20:15:01 +01:00
committed by Sofiya Tepikin
parent b6c0fd0dce
commit 29d76d19b1
11 changed files with 150 additions and 180 deletions
+9 -2
View File
@@ -6,10 +6,16 @@ import Link from './link'
import { Colors, Typography } from '../../styles/redesign'
export default function AppText({ children, onPress, numberOfLines, style}) {
export default function AppText({
children,
linkStyle,
onPress,
numberOfLines,
style
}) {
// we parse for links in case the text contains any
return (
<Link>
<Link style={linkStyle}>
<Text style={[styles.text, style]}
onPress={onPress}
numberOfLines={numberOfLines}
@@ -22,6 +28,7 @@ export default function AppText({ children, onPress, numberOfLines, style}) {
AppText.propTypes = {
children: PropTypes.node,
linkStyle: PropTypes.object,
onPress: PropTypes.func,
numberOfLines: PropTypes.number,
style: PropTypes.oneOfType([PropTypes.array, PropTypes.object]),