2.0.6 • Published 6 years ago

react-native-android-freshchat v2.0.6

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Freshchat-android-ReactNative

Freshchat library for React native. Currently it supports android only.

1 - Install

npm install --save react-native-android-freshchat

2 - In settings.gradle file

include ':react-native-android-freshchat'
project(':react-native-android-freshchat').projectDir = new File(settingsDir, '../node_modules/react-native-android-freshchat/android')

3 - In build.gradle(app)

compile project(':react-native-android-freshchat') 
compile 'com.github.freshdesk:freshchat-android:1.0.0'

4 - In build.gradle(project)

allprojects {
  repositories {
    mavenLocal()
    jcenter()
    maven {
     maven { url "https://jitpack.io" }
    }
  }
}

5 - add this in your MainApplication package list.

new FreshChatReactPackage()

6 - Finally import library

import FreshChatSdk from 'react-native-android-freshchat'

7 - For initializing

With User details -

FreshChatSdk.initWithUser(appId,appkey,user unique id,firstname,lastname,email,mobile,country code);

Without user details -

FreshChatSdk.init(appId,appkey)

8 - For calling faqs

FreshChatSdk.showFAQs()

9 - For calling conversations

FreshChatSdk.showConversations(null)

10 - For calling conversations

FreshChatSdk.showConversations("ENTER_YOUR_TAG_HERE")

11 - For reseting user

FreshChatSdk.resetUser()
2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago