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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@netomi.com/netomi-chat-react-native

v1.5.0

Published

A React Native wrapper for the Netomi Mobile Chat SDK, enabling seamless integration of Netomi’s AI Chat Interface into Android and iOS applications

Downloads

188

Readme

@netomi.com/netomi-chat-react-native

A React Native wrapper for the Netomi Mobile Chat SDK, enabling seamless integration of Netomi’s AI Chat Interface into Android and iOS applications

Installation

npm install @netomi.com/netomi-chat-react-native

Usage

import {
  initialize,
  launch,
  launchWithQuery,
  setPushToken,
  updateHeaderConfiguration,
  updateChatWindowConfiguration,
  updateBubbleConfiguration,
  updateBotConfiguration,
  updateUserConfiguration,
  updateFooterConfiguration,
  updateOtherConfiguration,
  updateApiHeaderConfiguration,
  sendCustomParameter,
} from '@netomi.com/netomi-chat-react-native';

// Initialize (e.g., App.tsx)
initialize('botRefId', 'qa'); // env: 'us' | 'sg' | 'eu' | 'qa' | 'qaint' | 'dev' (example)

launch(null | 'your-jwt-token');

launchWithQuery(null | 'searchQuery', null | 'your-jwt-token');

setPushToken('your-push-token');

updateHeaderConfiguration({
  backgroundColor: '#123456',
  gradientColors: ['#FF0000', '#00FF00'],
  isGradientApplied: true,
  iconBackgroundColor: '#CCCCCC',
  isBackPressPopupEnabled: false,
  tintColor: '#FFFFFF',
});

updateChatWindowConfiguration({
  chatWindowBackgroundColor: '#000000',
});

updateBubbleConfiguration({
  borderRadius: 100,
  timeStampColor: '#000000',
});

updateBotConfiguration({
  backgroundColor: '#F1F1F1',
  botImage: 'https://example.com/bot.png',
  textColor: '#000000',
  quickReplyBackgroundColor: '#E0E0E0',
  quickReplyBorderColor: '#CCCCCC',
  quickReplyTextColor: '#333333',
});

updateUserConfiguration({
  backgroundColor: '#D1ECF1',
  textColor: '#0C5460',
});

updateFooterConfiguration({
  backgroundColor: '#FFFFFF',
  inputBoxBackgroundColor: '#F0F0F0',
  inputBoxTextColor: '#000000',
  isFooterHidden: false,
  isNetomiBrandingEnabled: true,
  netomiBrandingText: 'Powered by Netomi',
  netomiBrandingTextColor: '#888888',
  tintColor: '#00AEEF',
});

updateOtherConfiguration({
  titleColor: '#000000',
  descriptionColor: '#666666',
  backgroundColor: '#F9F9F9',
  downloadTranscriptColor: '#0000ff',
  confirmButtonTextColor: '#000000',
  disabledButtonTextColor: '#333333'
});

updateApiHeaderConfiguration({
  sdkVersion: '1.0.0',
});

sendCustomParameter('name', 'value');

ProGuard Configuration

If you are using ProGuard or R8 in your React Native Android project, make sure to include the following rules in your proguard-rules.pro file to prevent essential classes from being obfuscated or removed. These rules ensure proper functioning of React Native, Netomi Chat SDK, Retrofit, Kotlin coroutines, and MQTT logging.

React Native core

-keep class com.facebook.react.** { ; } -keep class com.facebook.hermes.* { *; }

Required for SSL/Conscrypt compatibility

-keep class org.conscrypt.** { ; } -dontwarn org.conscrypt.*

Netomi Chat SDK

-keep class com.netomi.** { ; } -keep class com.netomichat.* { *; }

Retrofit and Kotlin coroutines

-keep,allowobfuscation,allowshrinking class retrofit2.Response -keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation

MQTT Logging used by AWS

-keepclassmembers class org.eclipse.paho.client.mqttv3.logging.** { *; }

Gson serialization/deserialization

-keepnames class * { @com.google.gson.annotations.SerializedName ; }

Why this is needed:

  1. Netomi SDK classes must be preserved to ensure chat functionality and SDK integration.
  2. Retrofit and Kotlin coroutine rules allow async API communication without breaking due to class shrinking or obfuscation.
  3. Gson rules ensure JSON serialization and deserialization work correctly using annotations.
  4. MQTT logging is required for debug and diagnostic messages related to chat services.

Add this to your android/app/proguard-rules.pro file if ProGuard or R8 is enabled.

Contributing

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

License

MIT