Commit ac1010cf by zeven

UDP广播模块

parent ca2776f5
android @ ec3dba3f
Subproject commit 3c22e36d5b4b056d1259d6e6ed4f819e21e3f9e0 Subproject commit ec3dba3f5035c0c0721961f1301321677dcd4bf4
import {NativeModules} from 'react-native';
import Speech from './Speech';
const send = params => {
if (!NativeModules.UdpBroadcast || !NativeModules.UdpBroadcast.send) {
Speech.speak('当前版本不支持调用该接口');
return false;
}
return NativeModules.UdpBroadcast.send(params);
};
export default {send};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment