react-native-siri-shortcuts
v0.1.5
Published
NSUserActivity for React Native
Downloads
11
Maintainers
Readme
React Native Siri Shortcuts ·
NSUserActivity for React Native
Setup
Install module locally.
$ npm install --save react-native-siri-shortcuts
Link using react-native cli.
$ react-native link react-native-siri-shortcuts
Declare the activity types that your app supports by including the NSUserActivityTypes key in its Info.plist file.
Sample usage
import RNSiriShortcuts from 'react-native-siri-shortcuts';
...
componentDidMount() {
RNSiriShortcuts.createActivity({
activityType: 'com.company.app.activity',
eligibleForSearch: true,
eligibleForPrediction: true,
title: 'Title of Activity',
});
}
License
React Native is MIT licensed.
React Native documentation is Creative Commons licensed.