Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bh_face_counter
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄天晨
bh_face_counter
Commits
ac1010cf
Commit
ac1010cf
authored
Oct 24, 2020
by
zeven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UDP广播模块
parent
ca2776f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
android
android
+1
-1
UdpBroadcast.js
src/utils/UdpBroadcast.js
+12
-0
No files found.
android
@
ec3dba3f
Subproject commit
3c22e36d5b4b056d1259d6e6ed4f819e21e3f9e0
Subproject commit
ec3dba3f5035c0c0721961f1301321677dcd4bf4
src/utils/UdpBroadcast.js
0 → 100644
View file @
ac1010cf
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
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment