react-native-aliyun-log

阿里云日志服务 react native SDK

Usage no npm install needed!

<script type="module">
  import reactNativeAliyunLog from 'https://cdn.skypack.dev/react-native-aliyun-log';
</script>

README

react-native-aliyun-log

阿里云日志服务 react native SDK

集成 AliyunLogObjcaliyun-log-android-sdk

安装

npm i --save react-native-aliyun-log
react-native link react-native-aliyun-log

使用

iOS

在工程中参考 AliyunLogObjc,使用 Carthage 方式集成

github "lujiajing1126/AliyunLogObjc"

Android

参考 aliyun-log-android-sdk

例子

import AliyunLog from 'react-native-aliyun-log';

AliyunLog.init('endPoint', 'accessKeyId', 'accessKeySecret', null, 'project');
AliyunLog.post('app', 'topic', 'source', [{ key: 'key1', content: 'content1' }, { key: 'key2', content: 'content2' }]);