Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: schedule mode color issue of the item. #970

Merged
merged 6 commits into from
Nov 11, 2023

Conversation

charithAmila
Copy link
Contributor

@charithAmila charithAmila commented Nov 8, 2023

Fixed the issue: #965

Test:
Try to change the background color of the event like below.

<Calendar
  height={SCREEN_HEIGHT}
  events={state.events}
  mode="schedule"
  eventCellStyle={(event: ICalendarEventBase & { color?: string }) => {
    if (event.color) {
      return [{ backgroundColor: event.color }]
    }
    return []
  }}
/>

Result:

Simulator Screen Shot - iPhone 8 - 2023-11-08 at 00 18 33

Copy link

vercel bot commented Nov 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-big-calendar ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2023 5:31am

@charithAmila charithAmila changed the title fix: schedule mode color of the icon. fix: schedule mode color issue of the item. Nov 8, 2023
@acro5piano
Copy link
Owner

@charithAmila Thanks! It looks fine!

@acro5piano acro5piano merged commit ece4881 into acro5piano:main Nov 11, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants