How to use the react-native-send-intent.openCalendar function in react-native-send-intent

To help you get started, we’ve selected a few react-native-send-intent examples, based on popular ways it is used in public projects.

github asommer70 / thehoick-habit-app / src / habits.js View on Github external
var endMoment = startMoment.add(30, 'm');
          var endDate = endMoment.format('YYYY-MM-DD hh:mm');

          // Create the Calendar Intent.
          SendIntentAndroid.addCalendarEvent({
            title: habits[habitIdx].name,
            description: 'Reminder from The Hoick Habit App for Habit: ' + habits[habitIdx].name,
            startDate: startDate,
            endDate: endDate,
            recurrence: 'daily'
          });
        });
      });
    } else {
      // Open Calendar for editing reminder event.
      SendIntentAndroid.openCalendar();
    }
  },

react-native-send-intent

React Native Android module to use Android's Intent actions for send sms, text to shareable apps, open custom apps, make phone calls and etc

MIT
Latest version published 12 months ago

Package Health Score

64 / 100
Full package analysis

Similar packages