Skip to content

Commit

Permalink
fix(react-native): call content participants layout (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
khushal87 authored Aug 25, 2023
1 parent 46b2515 commit c08be02
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,23 +134,26 @@ export const CallContent = ({

return (
<View style={[styles.container, callContent.container]}>
<View style={[styles.view, callContent.topContainer]}>
{CallTopView && (
<CallTopView
onBackPressed={onBackPressed}
onParticipantInfoPress={onParticipantInfoPress}
ParticipantsInfoBadge={ParticipantsInfoBadge}
/>
)}
{showFloatingView && FloatingParticipantView && (
<FloatingParticipantView {...participantViewProps} />
<View style={[styles.container, callContent.callParticipantsContainer]}>
<View style={[styles.view, callContent.topContainer]}>
{CallTopView && (
<CallTopView
onBackPressed={onBackPressed}
onParticipantInfoPress={onParticipantInfoPress}
ParticipantsInfoBadge={ParticipantsInfoBadge}
/>
)}
{showFloatingView && FloatingParticipantView && (
<FloatingParticipantView {...participantViewProps} />
)}
</View>
{showSpotlightLayout ? (
<CallParticipantsSpotlight {...callParticipantsSpotlightProps} />
) : (
<CallParticipantsGrid {...callParticipantsGridProps} />
)}
</View>
{showSpotlightLayout ? (
<CallParticipantsSpotlight {...callParticipantsSpotlightProps} />
) : (
<CallParticipantsGrid {...callParticipantsGridProps} />
)}

{CallControls && (
<CallControls onHangupCallHandler={onHangupCallHandler} />
)}
Expand Down
3 changes: 2 additions & 1 deletion packages/react-native-sdk/src/theme/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export type Theme = {
};
callContent: {
container: ViewStyle;

callParticipantsContainer: ViewStyle;
topContainer: ViewStyle;
};
callControls: {
Expand Down Expand Up @@ -261,6 +261,7 @@ export const defaultTheme: Theme = {
},
callContent: {
container: {},
callParticipantsContainer: {},
topContainer: {},
},
callControls: {
Expand Down

0 comments on commit c08be02

Please sign in to comment.