Permalink
Browse files

Update Chatkit example (#1043)

  • Loading branch information...
hamchapman authored and xcarpentier committed Jan 18, 2019
1 parent 553224d commit 5f33b90fcdf22b162a6a556a1b31821e0eb6641c
Showing with 13 additions and 13 deletions.
  1. +2 −2 example-pusher-chatkit/MyChat.js
  2. +10 −10 example-pusher-chatkit/package-lock.json
  3. +1 −1 example-pusher-chatkit/package.json
@@ -1,6 +1,6 @@
import React from "react";
import { GiftedChat } from "react-native-gifted-chat";
import Chatkit from "@pusher/chatkit";
import Chatkit from "@pusher/chatkit-client";

const CHATKIT_TOKEN_PROVIDER_ENDPOINT =
"<url from TEST TOKEN PROVIDER section>";
@@ -29,7 +29,7 @@ export default class MyChat extends React.Component {
this.currentUser.subscribeToRoom({
roomId: CHATKIT_ROOM_ID,
hooks: {
onNewMessage: this.onReceive.bind(this)
onMessage: this.onReceive.bind(this)
}
});
});

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -7,7 +7,7 @@
"test": "jest"
},
"dependencies": {
"@pusher/chatkit": "^0.7.12",
"@pusher/chatkit-client": "^1.2.1",
"react": "16.3.1",
"react-native": "0.55.4",
"react-native-gifted-chat": "^0.4.3"

0 comments on commit 5f33b90

Please sign in to comment.