0

I have a use case where I have to render an image on each date. Initially, I was considering react-native-calendar but couldn't found anything useful. Here I am going to attach a screenshot of what I want to achieve.

enter image description here

aashir khan
  • 598
  • 3
  • 7
  • 20

1 Answers1

1

As per the doc you could use dayComponent property to override the component.

<Calendar
  style={[styles.calendar, {height: 300}]}
  dayComponent={({date, state}) => {
    return (
      <View>
        <Text style={{textAlign: 'center', color: state === 'disabled' ? 'gray' : 'black'}}>
          {date.day}
        </Text>
      </View>
    );
  }}
/>
Kartikey
  • 4,516
  • 4
  • 15
  • 40
FnH
  • 587
  • 4
  • 5