Skip to content

Commit eba3512

Browse files
committed
Merge branch 'master' of github.com:reactnativecomponent/react-native-netease-im
2 parents 5e098d5 + 3e61d4e commit eba3512

File tree

5 files changed

+896
-768
lines changed

5 files changed

+896
-768
lines changed

AppCacheUtil.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
'use strict'
2+
import { NativeModules,Platform } from 'react-native';
3+
4+
const { RNNeteaseIm } = NativeModules;
5+
6+
export default class AppCacheUtil{
7+
/**
8+
* 清除数据缓存
9+
*/
10+
static cleanCache(){
11+
return RNNeteaseIm.cleanCache();
12+
}
13+
14+
/**
15+
* 获取缓存大小
16+
*/
17+
static getCacheSize(){
18+
return RNNeteaseIm.getCacheSize();
19+
}
20+
}
21+

0 commit comments

Comments
 (0)