Platform docs
Auth, users, webhooks & more
Info:
This is beta documentation for Stream Video React Native SDK v2. For the latest stable version, see the latest version (v1).

StreamVideo

Provider making client and state available to children and initializing internationalization.

General usage

import {
  StreamVideo,
  StreamVideoClient,
} from "@stream-io/video-react-native-sdk";

export const App = () => {
  const client = new StreamVideoClient(/* ... */);

  return (
    <StreamVideo client={client}>
      <MyUI />
    </StreamVideo>
  );
};

Props

client

StreamVideoClient instance propagated to the component's children as a part of StreamVideoContext. Children can access it with useStreamVideoClient() hook.

Type
StreamVideoClient

i18nInstance

The Streami18n instance to use, if undefined is provided, a new instance will be created. For more information, see our Internationalization guide.

Type
Streami18n | undefined

language

The language to translate UI labels. For more information, see our Internationalization guide.

Type Default
string | undefined en

translations

Translation dictionaries keyed by language code. They are registered over the SDK's built-in English copy rather than replacing it, so a partial dictionary is safe: any key you omit renders the English written at its call site. For more information, see our Internationalization guide.

Type
Record<string, LooseTranslationDictionary> | undefined

style

Prop to apply styles/theme to all of the inner components.

Type
Theme | undefined
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 Video React Native v2: <Your Question>