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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@tcn/omni-chat-client

v8.1.2

Published

A react native component for TCN's omni chat client

Downloads

381

Readme

@tcn/omni-chat-client

A react native component for TCN's omni chat client

Installation

Install the module in your project with:

yarn add @tcn/omni-chat-client

Also be sure to install the safe area context peer dependency (see package.json).

Configure and render the chat client component

Import the OmniChatClient component from the library.

In the config prop, pass an object with properties for an API key, url, and some CSS colors, as shown in the example snippet below.

Also be sure to place the OmniChatClient component somewhere within a SafeAreaProvider component from react-native-safe-area-context .

import { OmniChatClient } from "@tcn/omni-chat-client";
import {
  // ...
  KeyboardAvoidingView,
  // ...
} from "react-native";

export function YourComponent() {
  // ...
  return (
    // ...
    <SafeAreaProvider>
      {* ... *}
      <OmniChatClient
        config={{
          apiKey:
            "YOUR API KEY HERE - CAN BE FOUND IN OMNIBOSS CAMPAIGN OVERVIEW",
          url: "YOUR URL - CAN BE FOUND IN OMNIBOSS CAMPAIGN OVERVIEW",
          mainColor: "YOUR COLORS HERE",
          headingColor: "YOUR COLORS HERE",
          paragraphColor: "YOUR COLORS HERE",
        }}
      />
    </SafeAreaProvider>
    // ...
  );
}

Z Stack Positioning

You can optionally pass a zIndex prop to the OmniChatClient component to set the z-index of the chat client component. This is useful if the default value doesn't place the component in the correct z position for your app.

<OmniChatClient
  config={{
    // …
  }}
  zIndex={100}
/>

Deployment

Staging
  • Create feature branch with your version title release/7.5.x for example
  • Run pipeline, deploy-staging job will run
Production
  • Merge feature branch to master
  • Tag the new version, pipeline will deploy to production

FAQ

Why is the chat client component cut off when the keyboard is open?

Be sure to use adjustResize for the windowSoftInputMode in your Android Manifest file (or in app.json - expo.android.softwareKeyboardLayoutMode - if using Expo).

Contributing

There is currently no way for someone to contribute to this project, nor is there any issue tracking publicly.