Files
drip/components/app-text.js
T
2019-01-17 17:17:22 +01:00

35 lines
646 B
JavaScript

import React from 'react'
import { Text } from 'react-native'
import styles from "../styles"
export default function AppText(props) {
return (
<Text
style={[styles.appText, props.style]}
onPress={props.onPress}
>
{props.children}
</Text>
)
}
export function ActionHint(props) {
if(props.isVisible) {
return (
<AppText
style={[styles.actionHint, props.style]}>
{props.children}
</AppText>
)
} else {
return null
}
}
export function SymptomSectionHeader(props) {
return (
<AppText style={styles.symptomViewHeading}>
{props.children}
</AppText>
)
}