Skip to content
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

translationsOverrides

Custom translations that will be merged with the defaults provided by the library. For more information, see our Internationalization guide.

Type
TranslationsMap | undefined

style

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

Type
Theme | undefined