Skip to content

Instantly share code, notes, and snippets.

@3DEsprit 3DEsprit/event.js
Last active Jul 30, 2017

Embed
What would you like to do?
react-native-calendar-events event create
RNCalendarEvents.saveEvent(`Example Event`, {
location:'Our Awesome Place City, State',
notes: `${this.props.title}`,
description: `${this.props.title}`,
startDate: firstTime.toISOString(),
endDate: lastTime.toISOString(),
calendar: ['Calendar'],
alarm: [{
date:-1
}],
})
.then(id => {
// we can get the event ID here if we need it
Linking.URL(`cal:${firstTime.getTime()}`);
}).catch(error => console.log('Save Event Error: ', error));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.