refactor: split app into modular src architecture
This commit is contained in:
12
src/components/Field.js
Normal file
12
src/components/Field.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user