Hi Sonam,
Thanks for your update.
We have prepared a sample in which dataSource has been defined in state, please refer the following sample.
constructor(props) {
super(props)
this.setScheduleRef = this.setScheduleRef.bind(this)
this.state = {
data: []
}
}
componentDidMount() {
this.setState({
data: [
{
Id: '1',
Subject: 'Subject',
Description: 'Description',
StartTime: moment().toDate(),
EndTime: moment().add(30, 'minutes').toDate(),
IsAllDay: false
}
] })
}
Please try the sample if the issue persist still, kindly try to reproduce the issue in a sample else share your code snippet to check further on this.
Regards,
Nevitha