RingingCallContent

The RingingCallContent lets you easily build UI when you’re calling or ringing other people in an app. It’s used to show more information about the participants you’re calling, as well as give you the option to cancel the call before anyone accepts.

Based on the call’s ringing state and a call type, the RingingCallContent provides a list of participants, with their avatars and names, or a background with the avatar of the person you’re calling, if it’s a 1:1 conversation.

Let’s see how to show the RingingCallContent UI.

Incoming Call

Outgoing Call

Joining Call Indicator

Call Content

Usage

To use the RingingCallContent you can do the following:

import {
  StreamCall,
  useCalls,
  CallingState,
  RingingCallContent,
} from '@stream-io/video-react-native-sdk';

const Call = () => {
  // filter for ringing calls
  const calls = useCalls().filter(
    (c) => c.state.callingState === CallingState.RINGING,
  );
  const call = calls[0];
  if (!call) return null;

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

Props

landscape

Applies the landscape mode styles to the component, if true.

Type
boolean | undefined

IncomingCall

Prop to customize the IncomingCall component. This component is rendered when an incoming call is received.

TypeDefault Value
ComponentType| undefinedIncomingCall

OutgoingCall

Prop to customize the OutgoingCall component. This component is rendered when someone is called.

TypeDefault Value
ComponentType| undefinedOutgoingCall

CallTopView

Prop to customize the CallTopView component.

TypeDefault Value
ComponentType| undefinedCallTopView

CallContent

Prop to customize the accepted CallContent component in the RingingCallContent. This is shown after the call is accepted. By default it renders the CallContent component.

TypeDefault Value
ComponentType| undefinedCallContent

JoiningCallIndicator

Prop to customize the JoiningCallIndicator component in the RingingCallContent. It is shown when the call is accepted and is waiting to be joined.

TypeDefault Value
ComponentType| undefinedJoiningCallIndicator
© Getstream.io, Inc. All Rights Reserved.