import React, { Component } from 'react' import { StyleSheet, Text, Image, View, ImageSourcePropType } from 'react-native' interface Props { required?: boolean icon?: ImageSourcePropType label?: string } class Label extends Component { static defaultProps = { required: false, label: '', } render() { const { required, icon, label } = this.props return ( {icon ? : null} {!icon && label && {label}} ) } } const styles = StyleSheet.create({ text: { color: '#000000', fontSize: 17, textAlignVertical: 'center', }, }) export default Label