Info:
This is documentation for Stream Chat React Native SDK v7, which is no longer actively maintained. For up-to-date documentation, see the latest version (v9).

TypingContext

TypingContext is provided by Channel component. If you are not familiar with React Context API, please read about it on React docs.

Basic Usage

TypingContext can be consumed by any of the child component of Channel component as following:

import { useContext } from "react";
import { TypingContext } from "stream-chat-react-native";

const { typing } = useContext(TypingContext);

Alternatively, you can also use useTypingContext hook provided by library to consume TypingContext.

import { useTypingContext } from "stream-chat-react-native";

const { typing } = useTypingContext();

Value

typing

The value is a map of JavaScript SDK's typing.start event object mapped by user id, when there are users typing.

Type
object
Add Chat to my app: getstream.io/SKILL.md

The fastest way to build with Stream. Start a new project or improve an existing one. Full CLI and documentation integration out of the box.


Ask your agent:

/stream Build me a Social App with Feeds and Moderation.
/stream Any livestream calls running?
/stream Chat React Native v7: <Your Question>