Skip to content

Commit 02bf5fa

Browse files
committed
Update example
1 parent 02189fe commit 02bf5fa

File tree

3 files changed

+105
-46
lines changed

3 files changed

+105
-46
lines changed

example/app/routes/Chat/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,14 @@ export default class Chat extends Component {
404404
AuroraIController.scrollToBottom(true)
405405
this.setMessageTarget(msg)
406406
Alert.alert('send text', JSON.stringify(msg))
407+
408+
msg.messageSendingOptions = {
409+
isShowNotification: true,
410+
isRetainOffline: true,
411+
isCustomNotificationEnabled: true,
412+
notificationTitle: "Title Test",
413+
notificationText: "context"
414+
};
407415

408416
JMessage.sendMessage(msg, (jmessage) => {
409417
var auroraMsg = this.convertJMessageToAuroraMsg(jmessage)

example/package-lock.json

Lines changed: 89 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
},
77
"dependencies": {
88
"aurora-imui-react-native": "^0.10.12",
9-
"babel-plugin-transform-decorators-legacy": "^1.3.4",
9+
"babel-plugin-transform-decorators-legacy": "^1.3.5",
1010
"babel-preset-react-native-stage-0": "^1.0.1",
11-
"jcore-react-native": "^ 1.2.9",
12-
"jmessage-react-plugin": "^2.4.2",
11+
"jcore-react-native": "^1.2.11",
12+
"jmessage-react-plugin": "^2.4.5",
1313
"mobx": "^3.4.1",
1414
"mobx-react": "^4.3.5",
15-
"react": "^16.0.0",
15+
"react": "^16.6.0",
1616
"react-native": "^0.51.0",
17-
"react-native-fs": "^2.8.5",
18-
"react-navigation": "^1.0.0-beta.11",
19-
"react-redux": "^5.0.7",
20-
"react-timer-mixin": "^0.13.3",
17+
"react-native-fs": "^2.12.1",
18+
"react-navigation": "^1.6.1",
19+
"react-redux": "^5.1.0",
20+
"react-timer-mixin": "^0.13.4",
2121
"redux": "^3.7.2"
2222
},
2323
"devDependencies": {

0 commit comments

Comments
 (0)