Wondering what’s next for npm?Check out our public roadmap! »

    @cloudbase/adapter-cocos_native

    0.1.2 • Public • Published

    @cloudbase/adapter-cocos_native

    NPM Version

    tcb-js-sdk cocos native适配器

    安装

    npm i @cloudbase/adapter-cocos_native -S

    使用

    ES Module

    import tcb from 'tsb-js-sdk';
    import adapter from '@cloudbase/adapter-cocos_native';
     
    // 以下两种方式二选一
    // 1.单参数传入
    tcb.useAdapters(adapter);
    // 2.数组形式传参
    tcb.useAdapters([adapter]);
    // adapter必须在init之前传入
    tcb.init();

    CommonJS

    const tcb = require('tsb-js-sdk');
    const {adapter} = require('@cloudbase/adapter-cocos_native');
     
    // 以下两种方式二选一
    // 1.单参数传入
    tcb.useAdapters(adapter);
    // 2.数组形式传参
    tcb.useAdapters([adapter]);
    // adapter必须在init之前传入
    tcb.init();

    Keywords

    none

    Install

    npm i @cloudbase/adapter-cocos_native

    DownloadsWeekly Downloads

    8

    Version

    0.1.2

    License

    ISC

    Unpacked Size

    27.3 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar