react-native-zendesk-messaging
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

react-native-zendesk-messaging

zendesk

Zendesk messaging SDK for React Native

style ktlint swiftlint npm version

Features

  • 🔥 Not a Classic SDKs. It's new SDKs
  • 🗣️ Basic conversation features
  • 🔔 Push Notifications
  • ✅ Support SDK events
  • 🔑 User Authentication
  • 🚗 Visitor Path
  • 📝 Conversation Metadata(fields and tags)

Read official announcement about new messaging SDKs here.

Installation

npm install react-native-zendesk-messaging
# or
yarn add react-native-zendesk-messaging

Getting Started

Read Getting Started Guide.

Usage

import React, { useEffect } from 'react';
import {
  StyleSheet,
  SafeAreaView,
  Pressable,
  Text
} from 'react-native';
import * as Zendesk from 'react-native-zendesk-messaging';

const CHANNEL_KEY = 'YOUR_ZENDESK_CHANNEL_KEY';

function App() {
  useEffect(() => {
    Zendesk.initialize({ channelKey: CHANNEL_KEY })
      .then(() => /* success */)
      .catch((error) => /* failure */);
  }, []);

  const handlePressOpenButton = () => {
    Zendesk.openMessagingView();
  };

  return (
    <SafeAreaView style={styles.container}>
      <Pressable onPress={handlePressOpenButton}>
        <Text>Open Messaging</Text>
      </Pressable>
    </SafeAreaView>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
});

For more details, Read the API References.

If you're interested in contributing, check out the Contributing Guide.

Contributing

See CONTRIBUTING.md.

License

MIT


Made with create-react-native-library

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.0-rc.00rc
0.1.0-alpha.20alpha
0.3.2289latest

Version History

VersionDownloads (Last 7 Days)Published
0.3.2289
0.3.11
0.3.0433
0.2.13,104
0.1.3814
0.2.00
0.2.0-rc.00
0.1.20
0.1.12,482
0.1.1-rc.00
0.1.030
0.1.0-rc.90
0.1.0-rc.80
0.1.0-rc.70
0.1.0-rc.60
0.1.0-rc.40
0.1.0-rc.30
0.1.0-rc.20
0.1.0-rc.10
0.1.0-rc.00
0.1.0-alpha.20
0.1.0-alpha.00

Package Sidebar

Install

npm i react-native-zendesk-messaging

Weekly Downloads

6,042

Version

0.3.2

License

MIT

Unpacked Size

107 kB

Total Files

41

Last publish

Collaborators

  • ghlee