0.1.14 • Published 4 years ago

react-native-user-activity v0.1.14

Weekly downloads
19
License
MIT
Repository
github
Last release
4 years ago

react-native-user-activity

Setup iOS NSUserActivity object.

Setup

Install module locally.

$ npm install --save react-native-user-activity

Link using react-native cli.

$ react-native link react-native-user-activity

Declare the activity types that your app supports by including the NSUserActivityTypes key in its Info.plist file.

Sample usage

import UserActivity from 'react-native-user-activity';

...

componentDidMount() {
  UserActivity.createActivity({
    activityType: 'com.sample.proactive',
    webpageURL: 'http://...',
    eligibleForSearch: true,
    eligibleForPublicIndexing: false,
    eligibleForHandoff: false,
    title: 'Random Place',
    userInfo: {},
    locationInfo: {
      lat: 39.637737,
      lon: 22.417769
    },
    supportsNavigation: true,
    supportsPhoneCall: true,
    phoneNumber: '...',
    description: 'sample description that is not necessary',
    thumbnailURL: 'thumbnail url that is not necessary',
    identifier: 'identifier that is not necessary'
  });
}
0.1.14

4 years ago

0.1.13

7 years ago

0.1.12

7 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago