-
Notifications
You must be signed in to change notification settings - Fork 17
/
LocalParticipantPresenter.js
63 lines (62 loc) · 1.67 KB
/
LocalParticipantPresenter.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import { useMeeting } from "@videosdk.live/react-native-sdk";
import React from "react";
import { View, Text, TouchableOpacity } from "react-native";
import { ScreenShare } from "../../../assets/icons";
import colors from "../../../styles/colors";
import { ROBOTO_FONTS } from "../../../styles/fonts";
import { convertRFValue } from "../../../styles/spacing";
export default LocalParticipantPresenter = ({}) => {
const { disableScreenShare } = useMeeting({});
return (
<View
style={{
flex: 3,
backgroundColor: colors.primary[800],
justifyContent: "center",
borderRadius: 8,
margin: 4,
}}
>
<View
style={{
alignItems: "center",
}}
>
<ScreenShare width={40} height={40} fill={"#FFF"} />
<Text
style={{
fontFamily: ROBOTO_FONTS.Roboto,
fontSize: convertRFValue(14),
color: colors.primary[100],
marginVertical: 12,
}}
>
You are presenting to everyone
</Text>
<TouchableOpacity
style={{
paddingHorizontal: 16,
paddingVertical: 12,
alignItems: "center",
backgroundColor: "#5568FE",
borderRadius: 12,
marginVertical: 12,
}}
onPress={() => {
disableScreenShare();
}}
>
<Text
style={{
color: colors.primary["100"],
fontSize: 16,
fontFamily: ROBOTO_FONTS.RobotoBold,
}}
>
Stop Presenting
</Text>
</TouchableOpacity>
</View>
</View>
);
};