Skip to content

deelo55/react-native-zendesk-messaging

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🗣️ Zendesk messaging SDK for React Native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 32.9%
  • Java 16.6%
  • Swift 13.5%
  • Kotlin 10.5%
  • C++ 7.7%
  • Objective-C++ 6.7%
  • Other 12.1%