File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ declare module 'react-native-calendar-events' {
9797 endDate ? : string ,
9898 allDay ? : boolean ,
9999 notes ? : string ,
100+ description ? : string ,
100101 url ? : string ,
101102 alarms ?: Array < NewCalendarAlarm > ,
102103 recurrence ?: string ,
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ export function shareEvent(event: EventType): Promise<any> {
1212 const title = event . title
1313 const times = getTimes ( event )
1414 const location = event . location
15- const message = `${ title } \n\n${ times } \n\n${ location } `
15+ const description = event . description
16+ const message = `${ title } \n\n${ times } \n\n${ location } \n\n${ description } ` . trim ( )
1617 return Share . share ( { message} )
1718 . then ( result => console . log ( result ) )
1819 . catch ( error => console . log ( error . message ) )
@@ -46,7 +47,10 @@ async function saveEventToCalendar(event: EventType): Promise<boolean> {
4647 location : event . location ,
4748 startDate : event . startTime . toISOString ( ) ,
4849 endDate : event . endTime . toISOString ( ) ,
50+ description : event . description ,
51+ notes : event . description ,
4952 } )
53+
5054 return true
5155 } catch ( err ) {
5256 tracker . trackException ( err . message )
You can’t perform that action at this time.
0 commit comments