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 |