import * as React from "react"; import { Text, StyleProp, ViewStyle, StyleSheet } from "react-native"; import { extractStyles } from "../utilities"; import Touchable from "./Touchable"; type Props = { disabled?: boolean; label: string; direction: "row" | "column"; children: React.ReactNode; style?: StyleProp; onPress: () => void; }; export default function FormRow({ disabled, direction, children, label, style, onPress, ...rest }: Props) { const { textStyles, viewStyles } = extractStyles(style); return ( {label} {children} ); } const styles = StyleSheet.create({ row: { marginLeft: 8, marginRight: 8, flexDirection: "row", justifyContent: "space-between", alignItems: "center", }, });