Skip to main content

StreamCall

The <StreamCall /> component is a declarative component wrapper around Call objects. It utilizes the StreamCallProvider to make the call and its state available to all child components.

General usage

import { StreamCall } from '@stream-io/video-react-sdk';

export const App = () => {
const call = /* ... */;

return (
<StreamCall call={call}>
<MyUI />
</StreamCall>
);
};

Props

call

Type
Call

Stream's Call instance propagated to the component's children as a part of StreamCallContext. Children can access it with useCall() hook.

Did you find this page helpful?