question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Able to mark dates based on iCal rrule

See original GitHub issue

eg:

FREQ=WEEKLY;DTSTART=20120201T093000Z;INTERVAL=5;UNTIL=20130130T230000Z;BYDAY=MO,FR

there is a grate lib for this: https://github.com/jakubroztocil/rrule

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
atticooscommented, Aug 2, 2018

Hey that’s great to hear @esdrasevt. It’s pretty fascinating how the RRule is expressed into event instances on a calendar app (how they’re kinda “virtual” things, not really there unless you create an exception).

I’ve shared the process of exploring how these work at @robinpowered, we do a lot with iCal too.

Anyways, glad to hear you’re in business 👍

1reaction
atticooscommented, Jul 31, 2018

I don’t think a presentation component should have to deal with those concerns. This feels more like a user-land problem more than it does a library problem.

You could get good mileage by composing react-native-calendars with a thin-wrapper that interpolates the RRULE into a collection of events, and then use react-native-calendars as you normally would:

function ICalCalendar({rrule, ...props}) {
  const events = buildEventsFromRRule(rrule)

  return <Calendar {...props} markedDates={dateMarkingsFromEvents(events)} />
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

php - iCal backend - recurring dates - Stack Overflow
I have found a great PHP script which generates an array of the recurring dates based on the parameters entered by the user,...
Read more >
The Deceptively Complex World of RRULEs in Calendar Events
The deceptively complex world of calendar events and RRULEs can all be solved with a calendar API. Learn how to work with repeating...
Read more >
iCalendar Recurrences - Introduction - CalConnect
An RRULE property can appear at most once in a calendar component. It is used only in the component that defines the master...
Read more >
RFC 5545: Internet Calendaring and Scheduling Core Object ...
The format for the iCalendar object is based on the syntax of the ... The values MUST match one of the values allowed...
Read more >
How to setup single Pay Day Event - Apple Community
There doesn't seem to be a way to do this within the iCal interface.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found