-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathParticipantLimitViewer.js
69 lines (67 loc) · 1.67 KB
/
ParticipantLimitViewer.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
64
65
66
67
68
69
import { ROBOTO_FONTS } from "../../../styles/fonts";
import React from "react";
import { convertRFValue } from "../../../styles/spacing";
import { Text, View } from "react-native";
import colors from "../../../styles/colors";
import Button from "../../../components/Button";
import { useMeeting } from "@videosdk.live/react-native-sdk";
export default function ParticipantLimitViewer() {
const { leave } = useMeeting({});
return (
<View
style={{
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
height: "100%",
width: "100%",
}}
>
<Text
style={{
fontSize: convertRFValue(24),
color: colors.primary[100],
fontFamily: ROBOTO_FONTS.RobotoBold,
}}
>
OOPS !!
</Text>
<Text
style={{
fontSize: convertRFValue(12),
color: colors.primary[100],
fontFamily: ROBOTO_FONTS.RobotoBold,
textAlign: "center",
marginTop: 20,
}}
>
Maximun 2 participants can join this meeting.
</Text>
<Text
style={{
fontSize: convertRFValue(12),
color: colors.primary[400],
fontFamily: ROBOTO_FONTS.RobotoMedium,
marginTop: 10,
}}
>
Please try again later
</Text>
<Button
backgroundColor={colors.purple}
text="Ok"
onPress={() => {
leave();
}}
style={{
paddingHorizontal: 30,
height: 50,
marginTop: 30,
}}
textStyle={{
fontFamily: ROBOTO_FONTS.RobotoBold,
}}
/>
</View>
);
}