@100mslive/react-native-room-kit 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/lib/commonjs/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/lib/commonjs/Icons/Radio/index.js +29 -1
- package/lib/commonjs/Icons/Radio/index.js.map +1 -1
- package/lib/commonjs/Icons/Stop/assets/stop.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/commonjs/Icons/Stop/index.js.map +1 -1
- package/lib/commonjs/components/CompanyLogo.js +1 -1
- package/lib/commonjs/components/CompanyLogo.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +3 -2
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/Footer.js +9 -4
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/HMSHLSNotStarted.js +27 -19
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +18 -30
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageRaiseHand.js +2 -15
- package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/commonjs/components/HMSRecordingIndicator.js +1 -1
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +2 -1
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +2 -1
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +2 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/StatusBar.js +7 -5
- package/lib/commonjs/components/StatusBar.js.map +1 -1
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/utils/functions.js +1 -1
- package/lib/module/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/module/Icons/Radio/assets/radio-xlarge.png +0 -0
- package/lib/module/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/lib/module/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/lib/module/Icons/Radio/index.js +30 -2
- package/lib/module/Icons/Radio/index.js.map +1 -1
- package/lib/module/Icons/Stop/assets/stop.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/module/Icons/Stop/index.js.map +1 -1
- package/lib/module/components/CompanyLogo.js +1 -1
- package/lib/module/components/CompanyLogo.js.map +1 -1
- package/lib/module/components/DisplayView.js +3 -2
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/Footer.js +10 -5
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/HMSHLSNotStarted.js +29 -21
- package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/module/components/HMSManageLeave.js +18 -30
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSManageRaiseHand.js +2 -15
- package/lib/module/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/module/components/HMSRecordingIndicator.js +1 -1
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/module/components/Meeting.js +2 -1
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +2 -1
- package/lib/module/components/MeetingScreenContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +3 -2
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/StatusBar.js +7 -5
- package/lib/module/components/StatusBar.js.map +1 -1
- package/lib/module/components/StopRecordingModalContent.js.map +1 -1
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/utils/functions.js +1 -1
- package/lib/typescript/Icons/Radio/index.d.ts +7 -3
- package/lib/typescript/Icons/Radio/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Stop/index.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageRaiseHand.d.ts.map +1 -1
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/StatusBar.d.ts +2 -1
- package/lib/typescript/components/StatusBar.d.ts.map +1 -1
- package/lib/typescript/components/StopRecordingModalContent.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/Icons/Hamburger/assets/hamburger.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/src/Icons/Radio/assets/radio-xlarge.png +0 -0
- package/src/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
- package/src/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
- package/src/Icons/Radio/index.tsx +53 -4
- package/src/Icons/Stop/assets/stop.png +0 -0
- package/src/Icons/Stop/assets/stop@2x.png +0 -0
- package/src/Icons/Stop/assets/stop@3x.png +0 -0
- package/src/Icons/Stop/index.tsx +1 -4
- package/src/components/CompanyLogo.tsx +1 -1
- package/src/components/DisplayView.tsx +1 -2
- package/src/components/Footer.tsx +32 -27
- package/src/components/HLSView.tsx +1 -1
- package/src/components/HMSHLSNotStarted.tsx +26 -20
- package/src/components/HMSManageLeave.tsx +14 -20
- package/src/components/HMSManageRaiseHand.tsx +2 -16
- package/src/components/HMSRecordingIndicator.tsx +6 -4
- package/src/components/Header.tsx +3 -3
- package/src/components/Meeting.tsx +1 -1
- package/src/components/MeetingScreenContent.tsx +1 -1
- package/src/components/RoomSettingsModalContent.tsx +3 -2
- package/src/components/StatusBar.tsx +6 -4
- package/src/components/StopRecordingModalContent.tsx +3 -1
- package/src/hooks-util.ts +5 -4
- package/src/redux/actions/index.ts +3 -1
- package/src/redux/reducers/appState.ts +4 -1
- package/src/utils/functions.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/redux/actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,mBAAmB,EACnB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,eAAe,EAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAExD,OAAO,KAAK,EACV,uBAAuB,EACvB,UAAU,EACV,aAAa,EACb,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAC3B,OAAoB,EAAE,mBAA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,YAAY,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,YAAY,CAAC;IAC3B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,qBAAqB,EAAE,IAAI,GAAG,aAAa,CAAC;IAC5C,kBAAkB,EAAE,IAAI,GAAG,aAAa,CAAC;IACzC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,2BAA2B,EAAE,OAAO,CAAC;CACtC,CAAC;AA0BF,QAAA,MAAM,UAAU,+CAEN,UAAU,KACjB,eAoIF,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@100mslive/react-native-room-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"typescript": "^5.0.2"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@100mslive/react-native-hms": "
|
|
83
|
+
"@100mslive/react-native-hms": "1.7.1",
|
|
84
84
|
"@shopify/flash-list": "^1.4.3",
|
|
85
85
|
"react": "*",
|
|
86
86
|
"react-native": "*",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,27 +1,76 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Image, StyleSheet } from 'react-native';
|
|
3
|
-
import type { ImageProps } from 'react-native';
|
|
2
|
+
import { Image, StyleSheet, View } from 'react-native';
|
|
3
|
+
import type { ImageProps, StyleProp, ViewStyle } from 'react-native';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import { useHMSRoomStyleSheet } from '../../hooks-util';
|
|
6
|
+
|
|
7
|
+
type RadioIconProps = Omit<ImageProps, 'source'> &
|
|
8
|
+
(
|
|
9
|
+
| {
|
|
10
|
+
size?: 'normal';
|
|
11
|
+
}
|
|
12
|
+
| {
|
|
13
|
+
size?: 'extra-large';
|
|
14
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
15
|
+
}
|
|
16
|
+
);
|
|
6
17
|
|
|
7
18
|
export const RadioIcon: React.FC<RadioIconProps> = ({
|
|
8
19
|
style,
|
|
9
20
|
...restProps
|
|
10
21
|
}) => {
|
|
22
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme) => ({
|
|
23
|
+
container: {
|
|
24
|
+
backgroundColor: theme.palette.surface_default,
|
|
25
|
+
},
|
|
26
|
+
icon: {
|
|
27
|
+
tintColor: theme.palette.on_surface_high,
|
|
28
|
+
},
|
|
29
|
+
}));
|
|
30
|
+
|
|
31
|
+
if (restProps.size === 'extra-large') {
|
|
32
|
+
return (
|
|
33
|
+
<View
|
|
34
|
+
style={[
|
|
35
|
+
styles.container,
|
|
36
|
+
hmsRoomStyles.container,
|
|
37
|
+
restProps.containerStyle,
|
|
38
|
+
]}
|
|
39
|
+
>
|
|
40
|
+
<Image
|
|
41
|
+
source={require('./assets/radio-xlarge.png')}
|
|
42
|
+
style={[styles.icon, styles.xLargeIcon, hmsRoomStyles.icon, style]}
|
|
43
|
+
{...restProps}
|
|
44
|
+
/>
|
|
45
|
+
</View>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
11
49
|
return (
|
|
12
50
|
<Image
|
|
13
51
|
source={require('./assets/radio.png')}
|
|
14
|
-
style={[styles.icon, style]}
|
|
52
|
+
style={[styles.icon, hmsRoomStyles.icon, style]}
|
|
15
53
|
{...restProps}
|
|
16
54
|
/>
|
|
17
55
|
);
|
|
18
56
|
};
|
|
19
57
|
|
|
20
58
|
const styles = StyleSheet.create({
|
|
59
|
+
container: {
|
|
60
|
+
width: 80,
|
|
61
|
+
height: 80,
|
|
62
|
+
borderRadius: 40,
|
|
63
|
+
alignItems: 'center',
|
|
64
|
+
justifyContent: 'center',
|
|
65
|
+
},
|
|
21
66
|
icon: {
|
|
22
67
|
width: 24,
|
|
23
68
|
height: 24,
|
|
24
69
|
alignItems: 'center',
|
|
25
70
|
justifyContent: 'center',
|
|
26
71
|
},
|
|
72
|
+
xLargeIcon: {
|
|
73
|
+
width: 56,
|
|
74
|
+
height: 56,
|
|
75
|
+
},
|
|
27
76
|
});
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/Icons/Stop/index.tsx
CHANGED
|
@@ -6,10 +6,7 @@ import { useHMSRoomStyle } from '../../hooks-util';
|
|
|
6
6
|
|
|
7
7
|
interface StopIconProps extends Omit<ImageProps, 'source'> {}
|
|
8
8
|
|
|
9
|
-
export const StopIcon: React.FC<StopIconProps> = ({
|
|
10
|
-
style,
|
|
11
|
-
...restProps
|
|
12
|
-
}) => {
|
|
9
|
+
export const StopIcon: React.FC<StopIconProps> = ({ style, ...restProps }) => {
|
|
13
10
|
const iconStyles = useHMSRoomStyle((theme) => ({
|
|
14
11
|
tintColor: theme.palette.on_surface_high,
|
|
15
12
|
}));
|
|
@@ -8,7 +8,6 @@ import Animated, {
|
|
|
8
8
|
} from 'react-native-reanimated';
|
|
9
9
|
import type { SharedValue } from 'react-native-reanimated';
|
|
10
10
|
|
|
11
|
-
import { styles } from './styles';
|
|
12
11
|
import { DefaultModal } from './DefaultModal';
|
|
13
12
|
import { ModalTypes, PipModes } from '../utils/types';
|
|
14
13
|
import type { PeerTrackNode } from '../utils/types';
|
|
@@ -139,7 +138,7 @@ export const DisplayView: React.FC<DisplayViewProps> = ({
|
|
|
139
138
|
}, []);
|
|
140
139
|
|
|
141
140
|
return (
|
|
142
|
-
<Animated.View style={[
|
|
141
|
+
<Animated.View style={[{ flex: 1 }, animatedStyles]}>
|
|
143
142
|
{isHLSViewer ? (
|
|
144
143
|
<HLSView />
|
|
145
144
|
) : (
|
|
@@ -6,9 +6,9 @@ import Animated, {
|
|
|
6
6
|
useAnimatedStyle,
|
|
7
7
|
} from 'react-native-reanimated';
|
|
8
8
|
import type { SharedValue } from 'react-native-reanimated';
|
|
9
|
+
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
9
10
|
|
|
10
|
-
import {
|
|
11
|
-
import { useIsHLSViewer } from '../hooks-util';
|
|
11
|
+
import { useHMSRoomStyle, useIsHLSViewer } from '../hooks-util';
|
|
12
12
|
import { HMSManageLeave } from './HMSManageLeave';
|
|
13
13
|
import { HMSManageRaiseHand } from './HMSManageRaiseHand';
|
|
14
14
|
import { HMSManageLocalAudio } from './HMSManageLocalAudio';
|
|
@@ -61,32 +61,38 @@ export const _Footer: React.FC<FooterProps> = ({ offset }) => {
|
|
|
61
61
|
};
|
|
62
62
|
}, []);
|
|
63
63
|
|
|
64
|
+
const containerStyles = useHMSRoomStyle((theme) => ({
|
|
65
|
+
backgroundColor: theme.palette.background_dim,
|
|
66
|
+
}));
|
|
67
|
+
|
|
64
68
|
return (
|
|
65
69
|
<Animated.View style={animatedStyles} animatedProps={animatedProps}>
|
|
66
|
-
<
|
|
67
|
-
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
70
|
+
<SafeAreaView style={containerStyles} edges={['bottom']}>
|
|
71
|
+
<View style={[styles.container, containerStyles]}>
|
|
72
|
+
{footerActionButtons.map((actionType, index) => {
|
|
73
|
+
return (
|
|
74
|
+
<View
|
|
75
|
+
key={actionType}
|
|
76
|
+
style={index === 0 ? null : styles.iconWrapper}
|
|
77
|
+
>
|
|
78
|
+
{actionType === 'leave' ? (
|
|
79
|
+
<HMSManageLeave />
|
|
80
|
+
) : actionType === 'audio' ? (
|
|
81
|
+
<HMSManageLocalAudio />
|
|
82
|
+
) : actionType === 'video' ? (
|
|
83
|
+
<HMSManageLocalVideo />
|
|
84
|
+
) : actionType === 'chat' ? (
|
|
85
|
+
<HMSChat />
|
|
86
|
+
) : actionType === 'options' ? (
|
|
87
|
+
<HMSRoomOptions />
|
|
88
|
+
) : actionType === 'hand-raise' ? (
|
|
89
|
+
<HMSManageRaiseHand />
|
|
90
|
+
) : null}
|
|
91
|
+
</View>
|
|
92
|
+
);
|
|
93
|
+
})}
|
|
94
|
+
</View>
|
|
95
|
+
</SafeAreaView>
|
|
90
96
|
</Animated.View>
|
|
91
97
|
);
|
|
92
98
|
};
|
|
@@ -95,7 +101,6 @@ const styles = StyleSheet.create({
|
|
|
95
101
|
container: {
|
|
96
102
|
paddingTop: 16,
|
|
97
103
|
paddingHorizontal: 16,
|
|
98
|
-
backgroundColor: COLORS.BACKGROUND.DIM,
|
|
99
104
|
flexDirection: 'row',
|
|
100
105
|
alignItems: 'center',
|
|
101
106
|
justifyContent: 'center',
|
|
@@ -3,9 +3,8 @@ import { useSelector } from 'react-redux';
|
|
|
3
3
|
import { View, Text, StyleSheet } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import type { RootState } from '../redux';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { ClockIcon } from '../Icons';
|
|
6
|
+
import { useHMSRoomStyleSheet, usePortraitChatViewVisible } from '../hooks-util';
|
|
7
|
+
import { RadioIcon } from '../Icons';
|
|
9
8
|
|
|
10
9
|
export const HMSHLSNotStarted = () => {
|
|
11
10
|
const portraitChatViewVisible = usePortraitChatViewVisible();
|
|
@@ -13,46 +12,53 @@ export const HMSHLSNotStarted = () => {
|
|
|
13
12
|
(state: RootState) => state.app.hlsAspectRatio
|
|
14
13
|
);
|
|
15
14
|
|
|
15
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
16
|
+
title: {
|
|
17
|
+
color: theme.palette.on_surface_high,
|
|
18
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
19
|
+
},
|
|
20
|
+
description: {
|
|
21
|
+
color: theme.palette.on_surface_medium,
|
|
22
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
23
|
+
}
|
|
24
|
+
}));
|
|
25
|
+
|
|
16
26
|
return (
|
|
17
27
|
<View
|
|
18
28
|
style={[
|
|
19
|
-
styles.
|
|
29
|
+
styles.container,
|
|
20
30
|
portraitChatViewVisible ? styles.taleLessSpaceAsYouCan : null,
|
|
21
31
|
portraitChatViewVisible ? { aspectRatio: hlsAspectRatio.value } : null,
|
|
22
32
|
]}
|
|
23
33
|
>
|
|
24
|
-
<
|
|
25
|
-
<Text style={styles.title}>
|
|
26
|
-
<Text style={styles.description}>
|
|
27
|
-
|
|
34
|
+
<RadioIcon size='extra-large' containerStyle={styles.icon} />
|
|
35
|
+
<Text style={[styles.title, hmsRoomStyles.title]}>Stream yet to start</Text>
|
|
36
|
+
<Text style={[styles.description, hmsRoomStyles.description]}>
|
|
37
|
+
Sit back and relax
|
|
28
38
|
</Text>
|
|
29
39
|
</View>
|
|
30
40
|
);
|
|
31
41
|
};
|
|
32
42
|
|
|
33
43
|
const styles = StyleSheet.create({
|
|
34
|
-
|
|
44
|
+
container: {
|
|
35
45
|
flex: 1,
|
|
36
46
|
paddingHorizontal: 24,
|
|
37
47
|
alignItems: 'center',
|
|
38
48
|
justifyContent: 'center',
|
|
39
49
|
},
|
|
50
|
+
icon: {
|
|
51
|
+
marginBottom: 24
|
|
52
|
+
},
|
|
40
53
|
title: {
|
|
41
|
-
|
|
42
|
-
fontFamily: 'Inter',
|
|
43
|
-
fontSize: 28,
|
|
44
|
-
fontWeight: '600',
|
|
54
|
+
fontSize: 24,
|
|
45
55
|
lineHeight: 32,
|
|
46
|
-
letterSpacing: 0.25,
|
|
47
56
|
textAlign: 'center',
|
|
48
57
|
},
|
|
49
58
|
description: {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
fontWeight: '400',
|
|
54
|
-
lineHeight: 20,
|
|
55
|
-
letterSpacing: 0.25,
|
|
59
|
+
fontSize: 16,
|
|
60
|
+
lineHeight: 24,
|
|
61
|
+
letterSpacing: 0.5,
|
|
56
62
|
textAlign: 'center',
|
|
57
63
|
marginTop: 8,
|
|
58
64
|
},
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
useLeaveMethods,
|
|
10
10
|
} from '../hooks-util';
|
|
11
11
|
import type { RootState } from '../redux';
|
|
12
|
-
import { COLORS } from '../utils/theme';
|
|
13
12
|
import { ModalTypes } from '../utils/types';
|
|
14
13
|
import { PressableIcon } from './PressableIcon';
|
|
15
14
|
import { BottomSheet } from './BottomSheet';
|
|
@@ -42,9 +41,6 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
42
41
|
const [leaveModalType, setLeaveModalType] = React.useState(
|
|
43
42
|
ModalTypes.DEFAULT
|
|
44
43
|
);
|
|
45
|
-
const canEndRoom = useSelector(
|
|
46
|
-
(state: RootState) => state.hmsStates.localPeer?.role?.permissions?.endRoom
|
|
47
|
-
);
|
|
48
44
|
|
|
49
45
|
const { leave } = useLeaveMethods();
|
|
50
46
|
|
|
@@ -52,11 +48,7 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
52
48
|
* Opens the Leave Popup Menu
|
|
53
49
|
*/
|
|
54
50
|
const handleLeaveButtonPress = () => {
|
|
55
|
-
|
|
56
|
-
setLeavePopVisible(true);
|
|
57
|
-
} else {
|
|
58
|
-
setLeaveModalType(ModalTypes.LEAVE_ROOM);
|
|
59
|
-
}
|
|
51
|
+
setLeavePopVisible(true);
|
|
60
52
|
};
|
|
61
53
|
|
|
62
54
|
/**
|
|
@@ -95,13 +87,23 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
95
87
|
|
|
96
88
|
const dismissModal = () => setLeaveModalType(ModalTypes.DEFAULT);
|
|
97
89
|
|
|
90
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme) => ({
|
|
91
|
+
button: {
|
|
92
|
+
backgroundColor: theme.palette.alert_error_default,
|
|
93
|
+
borderColor: theme.palette.alert_error_default
|
|
94
|
+
},
|
|
95
|
+
icon: {
|
|
96
|
+
tintColor: theme.palette.alert_error_brighter
|
|
97
|
+
},
|
|
98
|
+
}));
|
|
99
|
+
|
|
98
100
|
const leaveIconDelegate =
|
|
99
101
|
'leaveIconDelegate' in props && props.leaveIconDelegate ? (
|
|
100
102
|
props.leaveIconDelegate
|
|
101
103
|
) : isHLSViewer ? (
|
|
102
|
-
<LeaveIcon style={
|
|
104
|
+
<LeaveIcon style={hmsRoomStyles.icon} />
|
|
103
105
|
) : (
|
|
104
|
-
<EndIcon />
|
|
106
|
+
<EndIcon style={hmsRoomStyles.icon} />
|
|
105
107
|
);
|
|
106
108
|
|
|
107
109
|
const leaveButtonDelegate =
|
|
@@ -115,7 +117,7 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
115
117
|
<View>
|
|
116
118
|
{React.cloneElement(leaveButtonDelegate, {
|
|
117
119
|
onPress: handleLeaveButtonPress,
|
|
118
|
-
style:
|
|
120
|
+
style: hmsRoomStyles.button,
|
|
119
121
|
})}
|
|
120
122
|
|
|
121
123
|
<LeaveBottomSheet
|
|
@@ -140,13 +142,6 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
|
|
|
140
142
|
// const HEADER_CONTENT_HEIGHT = 24 + 8 + 8 + 2; // ICON_SIZE + TOP_PADDING + BOTTOM_PADDING + TOP&BOTTOM_BORDER_WIDTH
|
|
141
143
|
// const HEADER_HEIGHT = 8 + HEADER_CONTENT_HEIGHT + 8; // TOP_HEADER_PADDING + HEADER_CONTENT_HEIGHT + BOTTOM_HEADER_PADDING
|
|
142
144
|
|
|
143
|
-
const styles = StyleSheet.create({
|
|
144
|
-
button: {
|
|
145
|
-
backgroundColor: COLORS.ALERT.ERROR.DEFAULT,
|
|
146
|
-
borderColor: COLORS.ALERT.ERROR.DEFAULT,
|
|
147
|
-
},
|
|
148
|
-
});
|
|
149
|
-
|
|
150
145
|
interface LeaveBottomSheetProps {
|
|
151
146
|
isVisible: boolean;
|
|
152
147
|
onPopupDismiss(): void;
|
|
@@ -254,7 +249,6 @@ const leavePopupStyles = StyleSheet.create({
|
|
|
254
249
|
width: 24,
|
|
255
250
|
height: 24,
|
|
256
251
|
marginRight: 16,
|
|
257
|
-
transform: [{ rotateY: '180deg' }],
|
|
258
252
|
},
|
|
259
253
|
textContainer: {
|
|
260
254
|
flex: 1,
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { StyleSheet } from 'react-native';
|
|
3
2
|
import { useSelector, shallowEqual } from 'react-redux';
|
|
4
3
|
|
|
5
4
|
import type { RootState } from '../redux';
|
|
6
|
-
import { COLORS } from '../utils/theme';
|
|
7
5
|
import { useHMSActions } from '../hooks-sdk';
|
|
8
6
|
import { PressableIcon } from './PressableIcon';
|
|
9
7
|
import { HandIcon } from '../Icons';
|
|
@@ -28,21 +26,9 @@ export const HMSManageRaiseHand = () => {
|
|
|
28
26
|
return (
|
|
29
27
|
<PressableIcon
|
|
30
28
|
onPress={toggleRaiseHand}
|
|
31
|
-
|
|
29
|
+
active={localPeerMetadata.isHandRaised}
|
|
32
30
|
>
|
|
33
|
-
<HandIcon
|
|
34
|
-
style={localPeerMetadata.isHandRaised ? styles.handRaised : undefined}
|
|
35
|
-
/>
|
|
31
|
+
<HandIcon />
|
|
36
32
|
</PressableIcon>
|
|
37
33
|
);
|
|
38
34
|
};
|
|
39
|
-
|
|
40
|
-
const styles = StyleSheet.create({
|
|
41
|
-
activeButton: {
|
|
42
|
-
backgroundColor: COLORS.SECONDARY.DIM,
|
|
43
|
-
borderColor: COLORS.SECONDARY.DIM,
|
|
44
|
-
},
|
|
45
|
-
handRaised: {
|
|
46
|
-
tintColor: COLORS.TWIN.YELLOW,
|
|
47
|
-
},
|
|
48
|
-
});
|
|
@@ -10,16 +10,18 @@ export const HMSRecordingIndicator = () => {
|
|
|
10
10
|
const isRecordingOn = useSelector(
|
|
11
11
|
(state: RootState) => !!state.hmsStates.room?.browserRecordingState?.running
|
|
12
12
|
);
|
|
13
|
-
const startingOrStoppingRecording = useSelector(
|
|
13
|
+
const startingOrStoppingRecording = useSelector(
|
|
14
|
+
(state: RootState) => state.app.startingOrStoppingRecording
|
|
15
|
+
);
|
|
14
16
|
|
|
15
17
|
const { on_surface_high: onSurfaceHighColor } = useHMSRoomColorPalette();
|
|
16
18
|
|
|
17
19
|
const iconStyles = useHMSRoomStyle((theme) => ({
|
|
18
|
-
tintColor: theme.palette.alert_error_default
|
|
20
|
+
tintColor: theme.palette.alert_error_default,
|
|
19
21
|
}));
|
|
20
22
|
|
|
21
23
|
if (startingOrStoppingRecording) {
|
|
22
|
-
return <ActivityIndicator size={
|
|
24
|
+
return <ActivityIndicator size={'small'} color={onSurfaceHighColor} />;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
if (isRecordingOn) {
|
|
@@ -27,7 +29,7 @@ export const HMSRecordingIndicator = () => {
|
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
return null;
|
|
30
|
-
}
|
|
32
|
+
};
|
|
31
33
|
|
|
32
34
|
const styles = StyleSheet.create({
|
|
33
35
|
icon: {
|
|
@@ -72,10 +72,10 @@ const styles = StyleSheet.create({
|
|
|
72
72
|
},
|
|
73
73
|
logoContainer: {
|
|
74
74
|
flexDirection: 'row',
|
|
75
|
-
alignItems: 'center'
|
|
75
|
+
alignItems: 'center',
|
|
76
76
|
},
|
|
77
77
|
logo: {
|
|
78
|
-
marginRight: 12
|
|
78
|
+
marginRight: 12,
|
|
79
79
|
},
|
|
80
80
|
controls: {
|
|
81
81
|
flexDirection: 'row',
|
|
@@ -83,7 +83,7 @@ const styles = StyleSheet.create({
|
|
|
83
83
|
marginLeft: 16,
|
|
84
84
|
},
|
|
85
85
|
cameraRotationWrapper: {
|
|
86
|
-
marginRight: 16
|
|
86
|
+
marginRight: 16,
|
|
87
87
|
},
|
|
88
88
|
});
|
|
89
89
|
|
|
@@ -74,7 +74,7 @@ export const Meeting: React.FC<MeetingProps> = ({ peerTrackNodes }) => {
|
|
|
74
74
|
* Solution: Try using Tab Gesture detector instead on Pressable component
|
|
75
75
|
*/
|
|
76
76
|
return (
|
|
77
|
-
<SafeAreaView style={[styles.container, containerStyles]}>
|
|
77
|
+
<SafeAreaView style={[styles.container, containerStyles]} edges={['top', 'left', 'right']}>
|
|
78
78
|
<MeetingScreenContent peerTrackNodes={peerTrackNodes} />
|
|
79
79
|
|
|
80
80
|
{landscapeChatViewVisible ? <ChatView /> : null}
|
|
@@ -88,7 +88,7 @@ export const MeetingScreenContent: React.FC<MeetingScreenContentProps> = ({
|
|
|
88
88
|
]}
|
|
89
89
|
disabled={isHLSViewer || true}
|
|
90
90
|
>
|
|
91
|
-
<HMSStatusBar hidden={controlsHidden} />
|
|
91
|
+
<HMSStatusBar hidden={controlsHidden} barStyle={'light-content'} />
|
|
92
92
|
|
|
93
93
|
{isPipModeActive ? null : <Header offset={offset} />}
|
|
94
94
|
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
ScreenShareIcon,
|
|
16
16
|
} from '../Icons';
|
|
17
17
|
import { BottomSheet, useBottomSheetActions } from './BottomSheet';
|
|
18
|
-
import { useHMSInstance, useHMSRoomStyleSheet } from '../hooks-util';
|
|
18
|
+
import { useHMSInstance, useHMSRoomStyleSheet, useIsHLSViewer } from '../hooks-util';
|
|
19
19
|
import { useCanPublishScreen, useHMSActions } from '../hooks-sdk';
|
|
20
20
|
import { RoomSettingsModalDebugModeContent } from './RoomSettingsModalDebugModeContent';
|
|
21
21
|
import { setStartingOrStoppingRecording } from '../redux/actions';
|
|
@@ -41,6 +41,7 @@ export const RoomSettingsModalContent: React.FC<
|
|
|
41
41
|
const dispatch = useDispatch();
|
|
42
42
|
const hmsInstance = useHMSInstance();
|
|
43
43
|
const debugMode = useSelector((state: RootState) => state.user.debugMode);
|
|
44
|
+
const isHLSViewer = useIsHLSViewer();
|
|
44
45
|
|
|
45
46
|
const hmsActions = useHMSActions();
|
|
46
47
|
|
|
@@ -184,7 +185,7 @@ export const RoomSettingsModalContent: React.FC<
|
|
|
184
185
|
label: parsedMetadata.isHandRaised ? 'Hand Raised' : 'Raise Hand',
|
|
185
186
|
pressHandler: toggleRaiseHand,
|
|
186
187
|
isActive: isHandRaised, // Show active if `isHandRaised` is set on metadata
|
|
187
|
-
hide:
|
|
188
|
+
hide: isHLSViewer, // Hide if can't publish screen
|
|
188
189
|
},
|
|
189
190
|
{
|
|
190
191
|
id: 'start-recording',
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StatusBar, Platform } from 'react-native';
|
|
3
|
+
import type { StatusBarProps } from 'react-native';
|
|
3
4
|
|
|
4
5
|
import { useShowLandscapeLayout } from '../hooks-util';
|
|
5
6
|
|
|
6
|
-
type HMSStatusBarProps = {
|
|
7
|
+
type HMSStatusBarProps = StatusBarProps & {
|
|
7
8
|
hidden?: boolean;
|
|
8
9
|
};
|
|
9
10
|
|
|
10
|
-
export const HMSStatusBar: React.FC<HMSStatusBarProps> = ({ hidden }) => {
|
|
11
|
+
export const HMSStatusBar: React.FC<HMSStatusBarProps> = ({ hidden, ...resetProps }) => {
|
|
11
12
|
const showLandscapeLayout = useShowLandscapeLayout();
|
|
12
13
|
|
|
13
14
|
return (
|
|
14
15
|
<StatusBar
|
|
16
|
+
{...resetProps}
|
|
15
17
|
hidden={(Platform.OS === 'ios' && hidden) || showLandscapeLayout} // use `hidden` prop to hide Status bar on iOS
|
|
16
18
|
barStyle={
|
|
17
|
-
Platform.OS === 'android' && hidden ? 'dark-content' :
|
|
19
|
+
Platform.OS === 'android' && hidden ? 'dark-content' : resetProps.barStyle
|
|
18
20
|
} // hack: use `dark-content` value to make StatusBar look like it's hidden
|
|
19
|
-
animated={true}
|
|
21
|
+
animated={resetProps.animated ?? true}
|
|
20
22
|
/>
|
|
21
23
|
);
|
|
22
24
|
};
|
|
@@ -17,7 +17,9 @@ export const StopRecordingModalContent: React.FC<
|
|
|
17
17
|
> = ({ dismissModal }) => {
|
|
18
18
|
const dispatch = useDispatch();
|
|
19
19
|
const hmsInstance = useHMSInstance();
|
|
20
|
-
const startingOrStoppingRecording = useSelector(
|
|
20
|
+
const startingOrStoppingRecording = useSelector(
|
|
21
|
+
(state: RootState) => state.app.startingOrStoppingRecording
|
|
22
|
+
);
|
|
21
23
|
|
|
22
24
|
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
23
25
|
headerText: {
|