I am displaying an array like so :
this.props.group.fields.slice(0,3).map((field, key)=>{
return(
<View style= {styles.cardContainerStyle}>
<FieldListItem key={key} field ={field}></FieldListItem>)
and the FieldListItem render method is :
render(){
let types = this.props.field.type
return(<Text>types<Text>)}
Basically, I am using slice to display only first 3 elements and I want to style them differently.For example, I want to style the first element as a Title - bold, the second one as single line and font should be smaller and the last can be multiLine and color should be diff. Is there any way I can do that?