Skip to content

FlowGPT/RNLDNetDiagnoService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-mtr

npm version

此项目基于LDNetDiagnoService_IOS

安装

npm install react-native-mtr

使用

import MtrModule from 'react-native-mtr';

//开始诊断
MtrModule.startNetDiagnosis({
  theAppCode: '', //应用Code(可选,可为空)
  appName: '', //应用名称(可选,可为空)
  appVersion: '', //App版本(可选,可为空)
  userID: '', //用户ID(邮箱)(可选,可为空)
  dormain: '', //测试域名,必填
})

//停止诊断
MtrModule.stopNetDiagnosis();

//添加监听
MtrModule.addListener(() => {});

//移除监听
MtrModule.removeListener();

//是否诊断中
MtrModule.isRunningSync();

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •