title: get event from main calendar by expo calendar
body: <p>I'm trying to use Calendar.getEventsAsync(&quot;calendarId&quot;, startDate,endDate) to get all events in my calendar from date &quot;startDate&quot; to &quot;endDate&quot;. here is part of my code:</p>
  <pre><code>export class CalendarScreen extends Component {
  ...
  
  async getEvents(date){
    this.setState({
      selectedStartDate: date,
    });
     console.log(&quot;1&quot;)
    
    const { status } = await Calendar.requestCalendarPermissionsAsync();
    if (status === 'granted') {
      try {
        console.log(&quot;2&quot;)
  
        let startDate = new Date(this.state.startDate); //from today
        let endDate = this.state.endDate.setDate(startDate.getDate()+1) ;/// to tomorrow
        console.log(new Date(startDate))
        console.log(new Date(endDate))
        
        const eventi= await Calendar.getEventsAsync('1',new Date(startDate),new Date(endDate));
        
        console.log(eventi)
       
      } catch (error) {
        return    
      }
    }
  }
   render() {
      
      return (
  ...
  &lt;CalendarPicker
                onDateChange={this.getEvents}
              /&gt;
  ...
  </code></pre>
  <p>but out put is as bellow:</p>
  <pre><code>1
  2
  2022-07-21T12:11:02.000Z
  2022-07-22T12:11:02.514Z
  </code></pre>
  <p>nothing as events</p>