title: Calendar Object not updating when useState value that supplied markedDates gets changed
body: <p>I am using the Calendar Object from <code>react-native-calendars</code> and one of the props for its supplied <code>&lt;Calendar&gt;</code> component is <code>markedDates</code>
  It is supposed to have a format like the following...</p>
  <pre><code>&quot;2022-09-12&quot;: {&quot;activeOpacity&quot;: 0.5, &quot;color&quot;: &quot;white&quot;, &quot;dots&quot;: [[Object]], &quot;marked&quot;: true, &quot;selected&quot;: false}, 
  &quot;2022-09-14&quot;: {&quot;activeOpacity&quot;: 0.5, &quot;color&quot;: &quot;white&quot;, &quot;dots&quot;: [[Object]], &quot;marked&quot;: true, &quot;selected&quot;: false}, 
  &quot;2022-09-16&quot;: {&quot;activeOpacity&quot;: 0.5, &quot;color&quot;: &quot;white&quot;, &quot;dots&quot;: [[Object]], &quot;marked&quot;: true, &quot;selected&quot;: false}, 
  &quot;2022-9-17&quot;: {&quot;selected&quot;: true}, 
  &quot;2022-9-19&quot;: {&quot;selected&quot;: false}, 
  </code></pre>
  <p>wherein <code>selected</code> if true, activates the <code>selectedStyle</code> on the date, and where <code>dots</code> is an array of <code>dot</code> objects that indicate the presence of dots beneath the date value.</p>
  <p>The issue is, <strong>notice how '2022-9-17' is set to {selected: true} yet the Calendar does not reflect that.</strong> I am <code>console.log</code>-ing the value displayed above in a useEffect, but it does not reflect what is shown in the Calendar. Does anyone aware of <code>Calendar</code> know if there's a way to get around this, or if I'm doing something improperly? The <code>Calendar</code> is called like so...</p>
  <pre><code> return(
      &lt;View style={{height: maxHeight * 0.43}}&gt;
           &lt;CalendarProvider date={selectedDay} onDateChanged={() =&gt; handleSetSelectedDay(selectedDay)}&gt; 
                &lt;Calendar
                    markingType={`multi-dot`}
                    markedDates={markedDateObjects}
                    hideExtraDays={true}
                    onDayPress={day =&gt; { handleDateClick(day) }}
                    // Other stuff irrelevant for the issue
                 /&gt;
            &lt;/CalendarProvider&gt;
     &lt;/View&gt;
  )
  </code></pre>