Skip to content

Commit 3512cd3

Browse files
authored
fix(voip): set explicit snaps for NewMediaCall bottom sheet (#7165)
1 parent 3c21cb8 commit 3512cd3

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

app/lib/hooks/useNewMediaCall/useNewMediaCall.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ export const useNewMediaCall = (rid?: string) => {
1919
}
2020
}
2121
showActionSheetRef({
22-
children: <NewMediaCall />
22+
children: <NewMediaCall />,
23+
portraitSnaps: ['60%'],
24+
landscapeSnaps: ['90%'],
25+
enableContentPanningGesture: false,
26+
fullContainer: true
2327
});
2428
};
2529

app/views/NewMessageView/Item.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ const Item = ({ userId, name, username, onPress, testID, onLongPress }: IItem) =
2929
if (!userId) return;
3030
usePeerAutocompleteStore.getState().setSelectedPeer({ type: 'user', value: userId, label: name, username });
3131
showActionSheetRef({
32-
children: <NewMediaCall />
32+
children: <NewMediaCall />,
33+
portraitSnaps: ['60%'],
34+
landscapeSnaps: ['90%'],
35+
enableContentPanningGesture: false,
36+
fullContainer: true
3337
});
3438
};
3539

0 commit comments

Comments
 (0)