mfds / react-native-zendesk-messaging

πŸ—£οΈ Zendesk messaging SDK for React Native

Home Page:https://www.npmjs.com/package/react-native-zendesk-messaging

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://www.npmjs.com/package/react-native-zendesk-messaging

License:MIT License


Languages

Language:TypeScript 32.0%Language:Java 17.0%Language:Swift 13.2%Language:Kotlin 10.7%Language:C++ 7.9%Language:Objective-C++ 6.8%Language:Objective-C 4.6%Language:Ruby 3.7%Language:JavaScript 2.9%Language:Starlark 0.6%Language:CMake 0.3%Language:C 0.1%