2.0.8 • Published 3 years ago

react-native-hs v2.0.8

Weekly downloads
65
License
-
Repository
-
Last release
3 years ago

react-native-hs

Native Bindings for the Helpshift Library. Available for iOS and Android.

Installation (iOS)

  1. npm install --save react-native-hs
  2. cd ios && pod install
  3. Follow the steps on the Helpshift SDK to complete installation.

Installation (Android)

  1. npm install --save react-native-hs

register module in MainApplication.java

import com.bahikhata.helpshift.HelpShiftPackage;

public List<ReactPackage> createAdditionalReactPackages() {
      return Arrays.<ReactPackage>asList(
              ...,
              new HelpShiftPackage()
      );
    }

Usage

The method names are named the same as in the iOS SDK. Only a few methods are implemented now - I welcome collaboration, pull requests, etc.

FAQ (Android and iOS)

import * as Helpshift from 'react-native-hs';
Helpshift.showFAQs({ 'withTagsMatching' : {'operator' : 'or', 'tags' : ['iPhone', 'iPad']}});

CHAT (Android and iOS)

import * as Helpshift from 'react-native-hs';
Helpshift.showConversation();

Initialize (Android)

import * as Helpshift from 'react-native-hs';
Helpshift.initialize(api_key, domain_name, app_id); //Initialize helpshift sdk.

Set User (Android)

import * as Helpshift from 'react-native-hs';
Helpshift.setUser(userId, name, email); //Set Tracking Parameters.
2.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago