@uiw/react-native
Version:
UIW for React Native
26 lines • 514 B
JavaScript
import React from 'react';
import Flex from '../../Flex';
import { Text, StyleSheet } from 'react-native';
const Label = ({
v
}) => {
return <Flex>
{v.required && <Text style={{
color: 'red',
marginRight: 5
}}>*</Text>}
<Text style={styles.label} {...v.attr}>
{v.name}
</Text>
</Flex>;
};
const styles = StyleSheet.create({
label: {
width: 110,
fontSize: 16,
color: '#434343',
fontWeight: '500',
marginBottom: 10
}
});
export default Label;