1

I am trying to add event from my react-native ios app to native calendar. But it does not show any event.

1
  • 2
    Please post your code. It's impossible to answer your question without it. Commented May 25, 2016 at 8:13

1 Answer 1

6

For anyone else coming to this question who is using the React Native Calendar Events module, there's an issue where if you don't specify an end date when creating an event then it won't work. If you specify endDate in your call to saveEvent, e.g.:

RNCalendarEvents.saveEvent('title', { location: 'location', notes: 'notes', startDate: '2016-10-01T09:45:00.000UTC', endDate: '2016-10-01T10:45:00.000UTC' }

then an event should be created.

Sign up to request clarification or add additional context in comments.

1 Comment

Throwing an error. saying unhandled promise rejection typeError null is not an object(Evaluating CalanderEvents.saveEvent)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.