This commit is contained in:
Julia Friesel
2018-12-20 15:45:13 +01:00
parent 77363511ad
commit 0aa8179570
5 changed files with 49 additions and 27 deletions
+22 -25
View File
@@ -1,33 +1,30 @@
import React, { Component } from 'react'
import React from 'react'
import { Text } from 'react-native'
import styles from "../styles"
export default class AppText extends Component {
render() {
return (
<Text style={[styles.appText, this.props.style]}>
{this.props.children}
</Text>
)
}
export default function AppText(props) {
return (
<Text
style={[styles.appText, props.style]}
onPress={props.onPress}
>
{props.children}
</Text>
)
}
export class AppTextLight extends Component {
render() {
return (
<Text style={[styles.appTextLight, this.props.style]}>
{this.props.children}
</Text>
)
}
export function AppTextLight(props) {
return (
<Text style={[styles.appTextLight, props.style]}>
{props.children}
</Text>
)
}
export class SymptomSectionHeader extends Component {
render() {
return (
<AppText style={styles.symptomViewHeading}>
{this.props.children}
</AppText>
)
}
export function SymptomSectionHeader(props) {
return (
<AppText style={styles.symptomViewHeading}>
{props.children}
</AppText>
)
}