npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cuoral-react-native-expo

v0.2.6

Published

Cuoral react native expo customer interaction SDK

Downloads

54

Readme

🧩 Cuoral React Native Widget

cuoral-react-native-expo is a React Native library that provides a Floating Action Button (FAB) to seamlessly integrate the Cuoral chat widget into your Expo or bare React Native applications.


✨ Features

  • 💬 Floating Chat Widget – Launch a full-featured Cuoral chat from any screen.
  • 🔁 Persistent Sessions – Conversations continue across app launches.
  • 👤 User Profile Pre-fill – Automatically set user email, first and last names.
  • 🔔 Push Notifications – Get notified of new messages (supports foreground & background).
  • 🎵 Sound Alerts – Play custom sounds when new messages arrive.
  • 🔄 Session Management – Handle loading, connected, disconnected, and error states.
  • 🚀 Escalation Support – Seamlessly transition from bot to live agent.
  • 📎 Image Attachments – Allow users to send pictures via the chat.
  • ⚙️ Customizable FAB – Configure position, icon, visibility, and color.

📦 Installation

Install the package along with all required peer dependencies:

Using Yarn

yarn add cuoral-react-native-expo \
  react \
  react-native \
  socket.io-client \
  @react-native-async-storage/async-storage \
  react-native-image-picker \
  expo-av \
  expo-image-picker \
  expo-notifications

Using NPM

npm install cuoral-react-native-expo \
  react \
  react-native \
  socket.io-client \
  @react-native-async-storage/async-storage \
  react-native-image-picker \
  expo-av \
  expo-image-picker \
  expo-notifications

💡 For Expo, it's recommended to install Expo modules via:

npx expo install expo-av expo-notifications expo-image-picker @react-native-async-storage/async-storage

🧠 Peer Dependencies

This library relies on the following peer dependencies. Ensure they are installed in your project:

| Package | Version | Purpose | |-------------------------------------------|------------|-------------------------------------| | react, react-native | * | Core framework | | @react-native-async-storage/async-storage | >=1.17.0 | Persistent session storage | | socket.io-client | >=4.0.0 | Real-time communication | | react-native-image-picker | * | Attach image files in chat | | expo-av | * | Play custom sound for new messages | | expo-notifications | * | Handle push notifications | | expo-image-picker | * | Allow media selection in Expo apps |


🧪 Sample Integration

Here’s how to integrate the widget into your app:

// App.js
import React from 'react';
import {
  View,
  Text,
  StyleSheet,
  SafeAreaView,
  StatusBar,
} from 'react-native';
import { CuoralLauncher } from 'cuoral-react-native-expo';

const App = () => {
  const PUBLIC_KEY = 'YOUR_CUORAL_PUBLIC_KEY'; // Replace with your actual key

  return (
    <SafeAreaView style={styles.safeArea}>
      <StatusBar barStyle="dark-content" backgroundColor="#f0f0f0" />

      <View style={styles.appContainer}>
        <Text style={styles.appTitle}>My Native App</Text>
        <Text style={styles.appBody}>
          This is an example app integrating the native Cuoral SDK.
        </Text>
        <Text style={styles.appBody}>
          Tap the chat bubble to launch the native Cuoral chat experience!
        </Text>
      </View>

      <CuoralLauncher
        publicKey={PUBLIC_KEY}
        email="[email protected]"
        firstName="Native"
        lastName="User"
        backgroundColor="#673AB7"
        icon={<Text style={{ color: 'white', fontSize: 24, fontWeight: 'bold' }}>💬</Text>}
        isVisible={true}
        position="bottomRight"
      />
    </SafeAreaView>
  );
};

const styles = StyleSheet.create({
  safeArea: {
    flex: 1,
    backgroundColor: '#f0f0f0',
  },
  appContainer: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    padding: 20,
  },
  appTitle: {
    fontSize: 28,
    fontWeight: 'bold',
    marginBottom: 15,
    color: '#333',
  },
  appBody: {
    fontSize: 18,
    color: '#555',
    textAlign: 'center',
    marginBottom: 5,
  },
});

export default App;