Thanks to visit codestin.com
Credit goes to github.com

Skip to content

heytea/react-native-udesk

Repository files navigation

@heytea/react-native-udesk

GitHub license npm

Getting started

$ npm install @heytea/react-native-udesk --save

Mostly automatic installation

$ react-native link @heytea/react-native-udeskk

Usage

import ReactNativeUdesk from '@heytea/react-native-udesk';

// 以下是ReactNativeUdesk可使用的方法

/**
 * 用户信息,用于传入这些用户信息,供客服查看
 */
export interface IUserInfo {
    nickname?: string;
    email?: string;
    phone?: string;
    description?: string;
    domain:string;
    appKey:string;
    appId:string;
    sdkToken:string;  //是客户的唯一标识,用来识别身份,可以传userId
}

/**
 * 开始聊天
 * @param {IUserInfo} userInfo 用户信息
 */
export function startChat(userInfo?: IUserInfo): Promise<boolean>

About

对 Udesk 的 React Native 插件封装,http://www.udesk.cn/doc/

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •