Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Add show drawer button #266

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion example/src/screens/ConferenceScreen/ConferenceScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const ConferenceScreen: FunctionComponent = () => {
(p) => p.status && DISPLAYED_STATUSES.includes(p.status)
);
}, [participants]);
const [isBottomSheetVisible, setIsBottomSheetVisible] = useState(false);

if (!conference || !me) {
return <LinearGradient colors={COLORS.GRADIENT} style={styles.wrapper} />;
Expand All @@ -61,6 +62,16 @@ const ConferenceScreen: FunctionComponent = () => {
<View style={styles.top}>
<Space mh="m" mv="m">
<Space mb="s" style={styles.topBar}>
<TouchableOpacity
style={styles.videoButton}
onPress={() => {
setIsBottomSheetVisible(!isBottomSheetVisible);
}}
>
<Text size="xxs" align="center">
TEST BUTTONS
</Text>
</TouchableOpacity>
<Text size="xs">Logged as: {me.info.name}</Text>
<LeaveConferenceButton />
</Space>
Expand Down Expand Up @@ -183,7 +194,7 @@ const ConferenceScreen: FunctionComponent = () => {
</View>
</SafeAreaView>
</MenuProvider>
<ConferenceScreenBottomSheet />
{isBottomSheetVisible ? (<ConferenceScreenBottomSheet />) : null}
</View>
<View style={styles.layerVideo} pointerEvents="none">
<VideoGallery
Expand Down