@heytea/react-native-udesk
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.7 • Public • Published

    @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>

    Install

    npm i @heytea/react-native-udesk

    DownloadsWeekly Downloads

    48

    Version

    1.0.7

    License

    MIT

    Unpacked Size

    25 kB

    Total Files

    14

    Last publish

    Collaborators

    • heytea