13 lines
291 B
JavaScript
13 lines
291 B
JavaScript
import React from 'react';
|
|
import { Text, View } from 'react-native';
|
|
import { styles } from '../styles';
|
|
|
|
export default function Field({ label, children }) {
|
|
return (
|
|
<View style={styles.fieldWrap}>
|
|
<Text style={styles.label}>{label}</Text>
|
|
{children}
|
|
</View>
|
|
);
|
|
}
|