All Projects → papercups-io → chat-widget-native

papercups-io / chat-widget-native

Licence: other
Papercups chat widget for React Native/Expo

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to chat-widget-native

aniuta
The simplest state manager for Expo and React Native
Stars: ✭ 35 (+45.83%)
Mutual labels:  expo
fixed-deposits-sample-app
A sample Fixed Deposit app built using Setu's FD SDK
Stars: ✭ 17 (-29.17%)
Mutual labels:  expo
app-monorepo
Secure, open source and community driven crypto wallet runs on all platforms and trusted by millions.
Stars: ✭ 1,282 (+5241.67%)
Mutual labels:  expo
expo-ticket-app
💎 A React Native ticket app to start learning Expo very quickly with selected libraries 📚
Stars: ✭ 87 (+262.5%)
Mutual labels:  expo
tempo-run
Universal Expo App for building personalised running playlists with Spotify
Stars: ✭ 34 (+41.67%)
Mutual labels:  expo
expo-next-monorepo-example
Create a universal React app using Expo and Next.js in a monorepo
Stars: ✭ 268 (+1016.67%)
Mutual labels:  expo
react-native-popable
Popovers, tooltips for React Native
Stars: ✭ 298 (+1141.67%)
Mutual labels:  expo
Auto Overnight
학교 외박신청 자동화 App Based in React Native
Stars: ✭ 12 (-50%)
Mutual labels:  expo
app-sense
📱 Easily learn & create React Native app basics using zero coding, drag-and-drop interface & logic blocks.
Stars: ✭ 86 (+258.33%)
Mutual labels:  expo
ikuradon
Mastodon client app for React Native(Expo App)
Stars: ✭ 41 (+70.83%)
Mutual labels:  expo
expo-community-flipper
Flipper Support for Expo Apps in React Native
Stars: ✭ 82 (+241.67%)
Mutual labels:  expo
design-starter-kit
A universal prototyping setup powered by @expo 🥤
Stars: ✭ 20 (-16.67%)
Mutual labels:  expo
eas-monorepo-example
Fast pnpm monorepo for cross-platform apps built with Expo / React Native and React.
Stars: ✭ 187 (+679.17%)
Mutual labels:  expo
firebase-storage-upload-example
This example has moved
Stars: ✭ 98 (+308.33%)
Mutual labels:  expo
apple-notes
A clone of the Apple Notes app but made universally with Expo
Stars: ✭ 53 (+120.83%)
Mutual labels:  expo
react-native-web-expo-boilerplate
I am no longer in maintenance
Stars: ✭ 64 (+166.67%)
Mutual labels:  expo
expo-firebase-auth-starter
Starter project for Expo and Firebase (with Authentication)
Stars: ✭ 31 (+29.17%)
Mutual labels:  expo
ad-b2c-react-native
React Native Azure B2C Auth using pure js. This doesn't require eject from Expo.
Stars: ✭ 54 (+125%)
Mutual labels:  expo
expo-rn-firebase-image-upload
example of how to upload image in expo with react-native and firebase
Stars: ✭ 47 (+95.83%)
Mutual labels:  expo
coronadev
Aplicativo para consultar a situação global do COVID-19
Stars: ✭ 44 (+83.33%)
Mutual labels:  expo

@papercups-io/chat-widget-native

Papercups chat widget for React Native

NPM JavaScript Style Guide

Demo

Screen Shot 2020-08-16 at 8 57 25 PM

Try it out! https://snack.expo.io/@reichertjalex/papercups

Install

npm install --save @papercups-io/chat-widget-native

Usage

First, sign up at https://app.papercups.io/register to get your account token. Your account token is what you will use to pass in as the accountId prop below.

NB: make sure to pass in an external_id with the customer prop so that we can identify the person you're chatting with and load their message history if you've chatted with them before! (See below for an example)

You can render the chat widget however you like. Here's how you might do it in a modal:

import React from 'react';
import {StyleSheet, Button, View} from 'react-native';
import Modal from 'react-native-modal';
import ChatWidget from '@papercups-io/chat-widget-native';

export default function App() {
  const [isModalVisible, setModalVisible] = React.useState(false);

  return (
    <View style={{flex: 1, padding: 24}}>
      <Button title="Open chat" onPress={() => setModalVisible(true)} />

      <Modal
        isVisible={isModalVisible}
        onBackdropPress={() => setModalVisible(false)}
      >
        <View style={styles.modal}>
          <ChatWidget
            // Update this with your own account token!
            accountId="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"
            title="Welcome to Papercups!"
            subtitle="We'll reply as soon as we can 😊"
            greeting="Hi there! :wave: Have any questions?"
            customer={{
              // Update this with a unique identifer for the customer/user,
              // so that we can load the message history if you've chatted
              // with this person in the past!
              external_id: 'xxxxxxxx',
              email: '[email protected]',
              name: 'Alex',
            }}
          />
        </View>
      </Modal>
    </View>
  );
}

const styles = StyleSheet.create({
  modal: {
    flex: 1,
    borderRadius: 4,
    overflow: 'hidden',
  },
});

License

MIT © Papercups

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].