23 lines
477 B
JavaScript
23 lines
477 B
JavaScript
import React, { Component } from 'react'
|
|
import { Text } from 'react-native'
|
|
import styles from "../styles"
|
|
|
|
export class AppText extends Component {
|
|
render() {
|
|
return (
|
|
<Text style={[styles.appText, this.props.style]}>
|
|
{this.props.children}
|
|
</Text>
|
|
)
|
|
}
|
|
}
|
|
|
|
export class SymptomSectionHeader extends Component {
|
|
render() {
|
|
return (
|
|
<AppText style={styles.symptomViewHeading}>
|
|
{this.props.children}
|
|
</AppText>
|
|
)
|
|
}
|
|
} |