import {Dimensions, Image, StyleSheet, Text, View} from 'react-native'; import SampleJSON from '../../formstr/sample.json'; import {Colors} from 'react-native/Libraries/NewAppScreen'; import {PropsWithChildren} from 'react'; import {Card} from '@ant-design/react-native'; type SectionProps = PropsWithChildren<{ title: string; }>; const backgroundStyle = { backgroundColor: Colors.darker, }; const styles = StyleSheet.create({ sectionContainer: { marginTop: 32, paddingHorizontal: 24, width: Dimensions.get('window').width - 80, }, sectionTitle: { fontSize: 24, fontWeight: '600', }, sectionDescription: { marginTop: 8, fontSize: 18, fontWeight: '400', }, highlight: { fontWeight: '500', }, }); function Section({children, title}: SectionProps): React.JSX.Element { return ( {title} {children} ); } export const PrescriptionCreator = () => { return (
From the practice of {SampleJSON.name}
{SampleJSON.fields.map(field => { return ( {field.question} {field.answerType} ); })}
); };