Modify the background color of the react-native-calendars component
P粉769413355
P粉769413355 2023-08-10 10:00:26
0
1
536
<p>I'm making an app using react-native-calendars. </p> <p>I want to change the background color of the calendar to blue. </p> <pre class="brush:php;toolbar:false;"><Calendar style={{backgroundColor: "blue"}} /></pre> <p>I tried the following method, but the problem is that only the border of the calendar changed. </p> <p>I want the entire calendar background to turn blue. </p> <p>If you know the solution, please reply. </p> <p>Thank you. </p>
P粉769413355
P粉769413355

reply all(1)
P粉790187507

Can you try this,


<Calendar
        style={{ backgroundColor: 'transparent' }}
        theme={{
          calendarBackground: 'transparent', 
        }}
      />
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template