Skip to content

wardjc/react-native-zendesk-messaging

 
 

Repository files navigation

react-native-zendesk-messaging

React Native Library for Zendesk Messaging

Installation

yarn add @flashcoffee/react-native-zendesk-messaging

Usage

import * as React from 'react';
import { Text, View, Button, Platform } from 'react-native';
import Config from 'react-native-config';
import {
  initialize,
  showMessaging,
} from '@flashcoffee/react-native-zendesk-messaging';

const App = () => {
  React.useEffect(() => {
    initialize(
      Platform.OS === 'android'
        ? Config.CHANNEL_KEY_ANDROID
        : Config.CHANNEL_KEY_IOS
    );
  }, []);
  return (
    <View style={{ padding: 100 }}>
      <Text
        style={{
          marginBottom: 50,
          textAlign: 'center',
          fontWeight: 'bold',
          fontSize: 20,
        }}
      >
        Zendesk Messaging
      </Text>
      <Text style={{ marginBottom: 10, textAlign: 'center' }}>
        Press The "CHAT" button to test
      </Text>
      <Button onPress={() => showMessaging()} title="CHAT" />
    </View>
  );
};

export default App;

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

About

React Native Library for Zendesk Messaging

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 44.3%
  • Objective-C 17.3%
  • TypeScript 15.5%
  • Swift 8.5%
  • JavaScript 6.6%
  • Ruby 6.4%
  • Other 1.4%