@pitch-me/react-native-twilio-chat
Version:
A React Native wrapper for the Twilio Chat iOS and Android SDKs
18 lines (12 loc) • 812 B
Markdown
# Example App
Run `npm install` (in this directory) and then `pod install` (for iOS) to bring in the xcode dependencies.
This is an example app using [React Native Gifted Messenger](https://github.com/FaridSafi/react-native-gifted-messenger).

You'll need to run a server locally to generate the access_tokens. I used a version of the [Twilio Chat Quickstart](https://www.twilio.com/docs/api/chat/guides/quickstart-js#download), modified to take an identity param in the `/token` route.
```JavaScript
app.get('/token', function(request, response) {
var appName = 'TwilioChatDemo';
var identity = request.query.identity || randomUsername();
var deviceId = request.query.device;
...
```