-3
renderItem = ({item}) => {
return(
<TouchableWithoutFeedback onPress={()=> this.setState({isItemVisible: true, modalData: {...item}})}>
<View style={{
flexDirection: 'row',
flex: 1,
marginLeft: 25
}}>
<View style={{
flex: 1,
justifyContent: 'center'
}}>
<Text style={{color: 'black'}}>{item.period}h</Text>
</View>
<View style={{flex: 2, marginLeft: 5, justifyContent: 'center'}}>
<Text style={{color: 'black', textAlign: 'justify'}}>{item.name}</Text>
</View>
<View style={{alignItems: 'flex-end', justifyContent: 'center'}}>
<MaterialIcons name='keyboard-arrow-right' size={20} />
</View>
</View>
</TouchableWithoutFeedback>
)
}
My item.period comes from the api and I want to return it only the day of the month that is there
What is his current value?
– Leonardo Getulio
It returns me the date in HTML
– Ruan Duarte
I want to know what value is coming in your object. If it’s coming
2019-01-01 11:22:33
, or25/1/2019 00:00:00 PM
, etc..– Leonardo Getulio
"period": "2019-10-17T00:00:00.000-03:00",
– Ruan Duarte