Skip to main content

Import SDK

Compatibility Notes

ChromeFirefoxSafariIEEdgeQQ BrowserWeChat BrowserAndroid
✔️✔️✔️10+✔️✔️✔️4.4+

Import SDK

Note

IMLib provides friendly TypeScript support for TypeScript users. It is recommended that developers use TypeScript for business development to improve code robustness and maintainability.

NPM Installation (Recommended)

  1. Dependency Installation

    Note

    Tip: The @rongcloud/engine package provides capability support for imlib-next. Developers do not need to understand its function, just ensure its version is consistent with imlib-next.

    # Install the latest version of IM 5.0
    npm install @rongcloud/engine@latest @rongcloud/imlib-next@latest -S
  2. Code Integration

    // CMD
    const RongIMLib = require('@rongcloud/imlib-next')

    // ES
    import * as RongIMLib from '@rongcloud/imlib-next'

CDN Link Integration

<script src="https://cdn.ronghub.com/RongIMLib-5.9.5.prod.js"></script>