Skip to content

Commit 64e083a

Browse files
Merge pull request #11 from jpush/dev
update to [email protected]
2 parents 439f25a + 928f89c commit 64e083a

File tree

22 files changed

+592
-179
lines changed

22 files changed

+592
-179
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ react-native link
1414

1515
#### Android
1616

17-
#### 这是一个使用 JMessage-sdk 的 React Native 插件,支持文字、图片、语言、文件消息。
18-
1917

2018
安装完毕后,在 MainApplication 中加上 JMessagePackage 即可。
2119
```
@@ -28,6 +26,21 @@ protected List<ReactPackage> getPackages() {
2826
}
2927
```
3028

29+
#### iOS
30+
31+
- 打开工程,进入 Build Settings -> Framework search paths 添加 framework 搜索路径
32+
33+
```
34+
$(SRCROOT)/../node_modules/jmessage-react-plugin/ios/RCTJMessageModule
35+
```
36+
37+
- 打开工程,进入 Build Settings -> Other Link Flag 添加一行编译选项
38+
39+
```
40+
-framework "JMessage"
41+
```
42+
43+
3144
## API
3245

3346
[API doc](./document/API.md)

example/app/resource/chat-icon.png

3.62 KB
Loading
5.14 KB
Loading
2.07 KB
Loading
2.52 KB
Loading
2.78 KB
Loading

example/app/resource/setting.png

2.42 KB
Loading
5.08 KB
Loading

example/app/resource/user-icon.png

2.88 KB
Loading

example/app/routes/Chat/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ var themsgid = 1
3434

3535

3636
export default class Chat extends Component {
37+
38+
static navigationOptions = {
39+
title: "Chat",
40+
};
41+
3742
constructor(props) {
3843
super(props);
3944
this.state = { inputViewLayout: {width:window.width, height:86,}};
@@ -161,7 +166,6 @@ export default class Chat extends Component {
161166
}
162167

163168
componentWillUnmount() {
164-
Alert.alert("Component", "will unmount")
165169
JMessage.removeReceiveMessageListener(this.receiveMessageCallBack)
166170
AuroraIController.removeMessageListDidLoadListener(this.messageListDidLoadCallback)
167171
}

0 commit comments

Comments
 (0)