- ๐ฅ Not a Classic SDKs. It's new SDKs
- ๐ฃ๏ธ Basic conversation features
- ๐ Push Notifications
- support native customizing or integrate with @react-native-firebase/messaging
- โ Support SDK events
- ๐ User Authentication
- ๐ Visitor Path
- ๐ Conversation Metadata(fields and tags)
Read official announcement about new messaging SDKs here.
npm install react-native-zendesk-messaging
# or
yarn add react-native-zendesk-messaging
Read Getting Started Guide.
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.
See CONTRIBUTING.md.
Made with create-react-native-library