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-native-sdk';

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

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

Props

call

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

Type
Call
© Getstream.io, Inc. All Rights Reserved.