5ae5dec98c
Wasn't necessary after all Issue: 178
43 lines
797 B
JavaScript
43 lines
797 B
JavaScript
import React from 'react'
|
|
import { Text, View } 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 AppTextLight(props) {
|
|
return (
|
|
<Text style={[styles.appTextLight, props.style]}>
|
|
{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>
|
|
)
|
|
} |