Skip to content

Commit bf093eb

Browse files
authored
Update README.md
1 parent d98ede2 commit bf093eb

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -215,21 +215,13 @@ import NIM from 'react-native-netease-im';
215215
```
216216

217217
### API
218-
#### NIM.login()
219-
```javascript
220-
// 登录参数
221-
{
222-
accid: "", //云信注册帐号
223-
  token:"" //登录的token
224-
}
225-
```
226-
返回一个`Promise`对象
218+
219+
参考[index.js](https://github.com/reactnativecomponent/react-native-netease-im/blob/master/index.js)
227220

228221
#### 监听会话
229222
```
230223
NativeAppEventEmitter.addListener("observeRecentContact",(data)=>{
231224
 console.log(data); //返回内容android和ios有区别
232225
});
233226
```
234-
更多接口请参阅`index.js`,或者参考Demo
235227

0 commit comments

Comments
 (0)