StreamVideo

The <StreamVideo /> provider makes the client and its state available to all child components and initializes 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.

TypeDefault
string | undefineden

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
© Getstream.io, Inc. All Rights Reserved.