import React from 'react'; import { Text, StyleSheet, Animated } from 'react-native'; interface LabelProps { text: string | number; asterik?: boolean; style?: object | object[]; textStyle?: object | object[]; asterikStyle?: object | object[]; } export default function Label(props: LabelProps) { return ( {props.text} {props.asterik ? ( * ) : null} ); } const styles = StyleSheet.create({ asterik: { color: '#C92B2B', fontSize: 16, }, label: { fontSize: 14, fontWeight: 'bold', color: 'black', }, wrapper: { flexDirection: 'row', }, });