Skip to content

Commit b67c990

Browse files
committed
assign
1 parent fed5fef commit b67c990

File tree

150 files changed

+1075
-596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+1075
-596
lines changed

NIM.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ export default class NIM{
317317
* @param duration 音频持续时间,单位是ms
318318
* @returns {*}
319319
*/
320-
//static sendAudioMessage(file,duration){
321-
// return RNNeteaseIm.sendAudioMessage(file,duration);
322-
//}
320+
static sendAudioMessage(file,duration){
321+
return RNNeteaseIm.sendAudioMessage(file,duration);
322+
}
323323

324324
/**
325325
* 发送视频消息

Utils.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22
import { NativeModules,Platform, NetInfo } from 'react-native';
33

4-
const { RNNeteaseIm } = NativeModules;
4+
const { RNNeteaseIm,PinYin } = NativeModules;
55

66
class Utils{
77
/**
@@ -59,12 +59,8 @@ class Utils{
5959
stopPlay(){
6060
return RNNeteaseIm.stopPlay();
6161
}
62-
/**
63-
* 取消播放录音
64-
* @returns {*}
65-
*/
66-
cancelAudioRecord(){
67-
return RNNeteaseIm.cancelAudioRecord();
62+
sortPinYin(o,key){
63+
return PinYin.sortPinYin(o,key);
6864
}
6965
}
7066
module.exports = new Utils();
-6.85 KB
Binary file not shown.
-6.36 KB
Binary file not shown.
-6.9 KB
Binary file not shown.
-6.63 KB
Binary file not shown.
-6.76 KB
Binary file not shown.
-7.25 KB
Binary file not shown.
-7.49 KB
Binary file not shown.

0 commit comments

Comments
 (0)