Introduces Home component redesign
This commit is contained in:
@@ -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]),
|
||||
|
||||
Reference in New Issue
Block a user