react-native-mcsjs
## Installation
Last updated 3 years ago by iamblue .
Apache2 · Original npm · Tarball · package.json
$ cnpm install react-native-mcsjs 
SYNC missed versions from official npm registry.

React-native-mcsjs: A react-native library for Mediatek cloud sandbox

Installation

  $ npm install react-native-mcsjs --save
  • Only support >= 6 Nodejs version

Usage

  • First, goto MCS.

You should get the appId and appSecrete under the Service provider section in the Profile page.

  • Second, In your React Native Project
import MCSjs from '../index';

const myApp = MCSjs.register({
  appId: '673549393943134',
  appSecret: '0Eei1OGcGT6wxZ2aKWO3LHvvpLEs1SKe',
  deviceId: 'DU8xrUWV',
});

myApp.on('encodeByMD5', function(data) {
  // Listening 'encodeByMD5' channel's command.
  console.log(data);

  myApp.emit('decodeByMD5', '', 'iiii');
  // Sending control command or upload datapoint to 'decodeByMD5' channel
});

Current Tags

  • 0.0.2                                ...           latest (3 years ago)

2 Versions

  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |