@100mslive/react-native-room-kit 1.0.0 → 1.0.2-beta.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/README.md +1 -1
- package/lib/commonjs/HMSInstanceSetup.js +2 -2
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
- package/lib/commonjs/HMSPrebuilt.js +20 -20
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +87 -46
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/Chevron/index.js +5 -1
- package/lib/commonjs/Icons/Chevron/index.js.map +1 -1
- package/lib/commonjs/Icons/Hand/assets/hand-off.png +0 -0
- package/lib/commonjs/Icons/Hand/assets/hand-off@2x.png +0 -0
- package/lib/commonjs/Icons/Hand/assets/hand-off@3x.png +0 -0
- package/lib/commonjs/Icons/Hand/index.js +2 -1
- package/lib/commonjs/Icons/Hand/index.js.map +1 -1
- package/lib/commonjs/Icons/Leave/index.js +5 -1
- package/lib/commonjs/Icons/Leave/index.js.map +1 -1
- package/lib/commonjs/Icons/Recording/assets/recording-off.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording-off@2x.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording-off@3x.png +0 -0
- package/lib/commonjs/Icons/Recording/index.js +2 -1
- package/lib/commonjs/Icons/Recording/index.js.map +1 -1
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/lib/commonjs/Icons/WelcomeHand/index.js +30 -0
- package/lib/commonjs/Icons/WelcomeHand/index.js.map +1 -0
- package/lib/commonjs/Icons/index.js +11 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/components/AnimatedFooter.js +2 -2
- package/lib/commonjs/components/AnimatedFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHLSFooter.js +2 -2
- package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHeader.js +2 -2
- package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
- package/lib/commonjs/components/AvatarView.js +2 -2
- package/lib/commonjs/components/AvatarView.js.map +1 -1
- package/lib/commonjs/components/BackButton.js +2 -2
- package/lib/commonjs/components/BackButton.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +2 -2
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChangeNameModalContent.js +25 -6
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatBanner.js +2 -2
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +3 -4
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +3 -4
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterItem.js +3 -4
- package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterView.js +3 -4
- package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatList.js +3 -4
- package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMessage.js +3 -4
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
- package/lib/commonjs/components/Chat/PinnedMessage.js +2 -2
- package/lib/commonjs/components/Chat/PinnedMessage.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +2 -2
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +7 -7
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +3 -4
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js +3 -4
- package/lib/commonjs/components/ChatAndParticipants/ChatView.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js +15 -14
- package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +5 -3
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModal.js +29 -0
- package/lib/commonjs/components/EndRoomModal.js.map +1 -0
- package/lib/commonjs/components/EndRoomModalContent.js +11 -4
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/Footer.js +13 -6
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/FullScreenVideoView.js +2 -2
- package/lib/commonjs/components/FullScreenVideoView.js.map +1 -1
- package/lib/commonjs/components/GridView.js +3 -4
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HLSFooter.js +2 -2
- package/lib/commonjs/components/HLSFooter.js.map +1 -1
- package/lib/commonjs/components/HLSView.js +2 -2
- package/lib/commonjs/components/HLSView.js.map +1 -1
- package/lib/commonjs/components/HMSBaseButton.js +2 -2
- package/lib/commonjs/components/HMSBaseButton.js.map +1 -1
- package/lib/commonjs/components/HMSChat.js +2 -2
- package/lib/commonjs/components/HMSChat.js.map +1 -1
- package/lib/commonjs/components/HMSDangerButton.js +4 -3
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessage.js +3 -4
- package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessageList.js +2 -2
- package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -1
- package/lib/commonjs/components/HMSHLSNotStarted.js +2 -2
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSHLSStreamLoading.js +6 -4
- package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/commonjs/components/HMSHandRaiseNotification.js +2 -2
- package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +7 -23
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/commonjs/components/HMSLiveIndicator.js +5 -6
- package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js +4 -4
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js.map +1 -1
- package/lib/commonjs/components/HMSLocalVideoView.js +2 -2
- package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +2 -2
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageCameraRotation.js +2 -2
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +7 -181
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalAudio.js +2 -2
- package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalVideo.js +2 -2
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/commonjs/components/HMSManageRaiseHand.js +23 -11
- package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/commonjs/components/HMSMeetingEnded.js +2 -2
- package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +6 -5
- package/lib/commonjs/components/HMSNotification.js.map +1 -1
- package/lib/commonjs/components/HMSNotifications.js +34 -8
- package/lib/commonjs/components/HMSNotifications.js.map +1 -1
- package/lib/commonjs/components/HMSOverlayChatView.js +9 -3
- package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewEditName.js +2 -2
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +5 -4
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewJoinButton.js +10 -5
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +2 -2
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewPeersList.js +2 -2
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +2 -2
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js +3 -3
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +2 -2
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js +2 -2
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -1
- package/lib/commonjs/components/HMSReconnectingNotification.js +33 -0
- package/lib/commonjs/components/HMSReconnectingNotification.js.map +1 -0
- package/lib/commonjs/components/HMSRecordingIndicator.js +6 -3
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js +2 -2
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -1
- package/lib/commonjs/components/HMSRoomOptions.js +2 -2
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSSendMessageInput.js +2 -2
- package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -1
- package/lib/commonjs/components/HMSTerminalErrorNotification.js +66 -0
- package/lib/commonjs/components/HMSTerminalErrorNotification.js.map +1 -0
- package/lib/commonjs/components/HMSTextInput.js +5 -5
- package/lib/commonjs/components/HMSTextInput.js.map +1 -1
- package/lib/commonjs/components/HMSVideoView.js +2 -2
- package/lib/commonjs/components/HMSVideoView.js.map +1 -1
- package/lib/commonjs/components/Header.js +4 -6
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LeaveRoomBottomSheet.js +175 -0
- package/lib/commonjs/components/LeaveRoomBottomSheet.js.map +1 -0
- package/lib/commonjs/components/LocalPeerRegularVideoView.js +2 -2
- package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -1
- package/lib/commonjs/components/LocalPeerScreenshareView.js +2 -2
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +6 -2
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +5 -4
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +2 -2
- package/lib/commonjs/components/MiniView.js.map +1 -1
- package/lib/commonjs/components/Modals.js +2 -2
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/OverlayContainer.js +2 -2
- package/lib/commonjs/components/OverlayContainer.js.map +1 -1
- package/lib/commonjs/components/OverlayedViews.js +3 -4
- package/lib/commonjs/components/OverlayedViews.js.map +1 -1
- package/lib/commonjs/components/PIPView.js +90 -19
- package/lib/commonjs/components/PIPView.js.map +1 -1
- package/lib/commonjs/components/PaginationDots.js +3 -4
- package/lib/commonjs/components/PaginationDots.js.map +1 -1
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js +65 -0
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js +60 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js +25 -0
- package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js +61 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +31 -31
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js +3 -4
- package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItem.js +12 -21
- package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js +3 -4
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +26 -5
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsList.js +157 -22
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsListFooter.js +43 -0
- package/lib/commonjs/components/Participants/ParticipantsListFooter.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +4 -4
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/commonjs/components/Participants/index.js +11 -0
- package/lib/commonjs/components/Participants/index.js.map +1 -1
- package/lib/commonjs/components/ParticipantsCount.js +3 -4
- package/lib/commonjs/components/ParticipantsCount.js.map +1 -1
- package/lib/commonjs/components/PeerDisplayView.js +1 -2
- package/lib/commonjs/components/PeerDisplayView.js.map +1 -1
- package/lib/commonjs/components/PeerMinimizedView.js +3 -4
- package/lib/commonjs/components/PeerMinimizedView.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsContainer.js +3 -4
- package/lib/commonjs/components/PeerRTCStatsContainer.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsView.js +1 -2
- package/lib/commonjs/components/PeerRTCStatsView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +8 -9
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js +2 -2
- package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js +2 -2
- package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js +15 -8
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +22 -12
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +2 -2
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +27 -13
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +3 -4
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +2 -2
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +5 -1
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/PreviewForRoleChangeModal.js +6 -12
- package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -1
- package/lib/commonjs/components/ReconnectionView.js +3 -4
- package/lib/commonjs/components/ReconnectionView.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +53 -20
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/commonjs/components/StatusBar.js +2 -2
- package/lib/commonjs/components/StatusBar.js.map +1 -1
- package/lib/commonjs/components/StopRecordingModalContent.js +6 -3
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
- package/lib/commonjs/components/StreamingQualityModalContent.js +2 -2
- package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -1
- package/lib/commonjs/components/Tile.js +1 -2
- package/lib/commonjs/components/Tile.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +1 -2
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/UnmountAfterDelay.js +3 -4
- package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -1
- package/lib/commonjs/components/WebrtcView.js +5 -5
- package/lib/commonjs/components/WebrtcView.js.map +1 -1
- package/lib/commonjs/components/WelcomeInMeeting.js +30 -9
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -1
- package/lib/commonjs/components/styles.js +1 -2
- package/lib/commonjs/components/styles.js.map +1 -1
- package/lib/commonjs/hooks-sdk.js +46 -1
- package/lib/commonjs/hooks-sdk.js.map +1 -1
- package/lib/commonjs/hooks-util.js +323 -145
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/index.js +11 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +12 -6
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +41 -4
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/index.js +1 -2
- package/lib/commonjs/redux/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +20 -5
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/chatWindow.js +1 -2
- package/lib/commonjs/redux/reducers/chatWindow.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +192 -22
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/redux/reducers/index.js +1 -2
- package/lib/commonjs/redux/reducers/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/message.js +3 -4
- package/lib/commonjs/redux/reducers/message.js.map +1 -1
- package/lib/commonjs/redux/reducers/userState.js +8 -5
- package/lib/commonjs/redux/reducers/userState.js.map +1 -1
- package/lib/commonjs/types.js +11 -3
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/dimension.js +2 -4
- package/lib/commonjs/utils/dimension.js.map +1 -1
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/theme.js +5 -10
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +23 -23
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/commonjs/utils.js +1 -8
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +18 -17
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +81 -40
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/Chevron/index.js +5 -1
- package/lib/module/Icons/Chevron/index.js.map +1 -1
- package/lib/module/Icons/Hand/assets/hand-off.png +0 -0
- package/lib/module/Icons/Hand/assets/hand-off@2x.png +0 -0
- package/lib/module/Icons/Hand/assets/hand-off@3x.png +0 -0
- package/lib/module/Icons/Hand/index.js +2 -1
- package/lib/module/Icons/Hand/index.js.map +1 -1
- package/lib/module/Icons/Leave/index.js +5 -1
- package/lib/module/Icons/Leave/index.js.map +1 -1
- package/lib/module/Icons/Recording/assets/recording-off.png +0 -0
- package/lib/module/Icons/Recording/assets/recording-off@2x.png +0 -0
- package/lib/module/Icons/Recording/assets/recording-off@3x.png +0 -0
- package/lib/module/Icons/Recording/index.js +2 -1
- package/lib/module/Icons/Recording/index.js.map +1 -1
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/lib/module/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/lib/module/Icons/WelcomeHand/index.js +22 -0
- package/lib/module/Icons/WelcomeHand/index.js.map +1 -0
- package/lib/module/Icons/index.js +1 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/components/ChangeNameModalContent.js +25 -6
- package/lib/module/components/ChangeNameModalContent.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js +4 -3
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ParticipantsView.js +13 -12
- package/lib/module/components/ChatAndParticipants/ParticipantsView.js.map +1 -1
- package/lib/module/components/DisplayView.js +3 -1
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/EndRoomModal.js +20 -0
- package/lib/module/components/EndRoomModal.js.map +1 -0
- package/lib/module/components/EndRoomModalContent.js +9 -2
- package/lib/module/components/EndRoomModalContent.js.map +1 -1
- package/lib/module/components/Footer.js +10 -2
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/HMSDangerButton.js +2 -1
- package/lib/module/components/HMSDangerButton.js.map +1 -1
- package/lib/module/components/HMSHLSStreamLoading.js +5 -3
- package/lib/module/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/module/components/HMSKeyboardAvoidingView.js +6 -22
- package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/module/components/HMSLiveIndicator.js +3 -3
- package/lib/module/components/HMSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSLocalScreenshareNotification.js +1 -1
- package/lib/module/components/HMSManageLeave.js +7 -182
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSManageRaiseHand.js +22 -10
- package/lib/module/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/module/components/HMSNotification.js +4 -3
- package/lib/module/components/HMSNotification.js.map +1 -1
- package/lib/module/components/HMSNotifications.js +28 -2
- package/lib/module/components/HMSNotifications.js.map +1 -1
- package/lib/module/components/HMSOverlayChatView.js +7 -1
- package/lib/module/components/HMSOverlayChatView.js.map +1 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js +3 -2
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSPreviewJoinButton.js +9 -4
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewTile.js +1 -1
- package/lib/module/components/HMSPreviewTile.js.map +1 -1
- package/lib/module/components/HMSReconnectingNotification.js +24 -0
- package/lib/module/components/HMSReconnectingNotification.js.map +1 -0
- package/lib/module/components/HMSRecordingIndicator.js +4 -1
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/module/components/HMSTerminalErrorNotification.js +57 -0
- package/lib/module/components/HMSTerminalErrorNotification.js.map +1 -0
- package/lib/module/components/HMSTextInput.js +3 -3
- package/lib/module/components/HMSTextInput.js.map +1 -1
- package/lib/module/components/LeaveRoomBottomSheet.js +167 -0
- package/lib/module/components/LeaveRoomBottomSheet.js.map +1 -0
- package/lib/module/components/Meeting.js +5 -1
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +3 -2
- package/lib/module/components/MeetingScreenContent.js.map +1 -1
- package/lib/module/components/PIPView.js +87 -14
- package/lib/module/components/PIPView.js.map +1 -1
- package/lib/module/components/Participants/MultiRoleParticipantsList.js +56 -0
- package/lib/module/components/Participants/MultiRoleParticipantsList.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsAccordian.js +51 -0
- package/lib/module/components/Participants/ParticipantsAccordian.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsAccordianExpanded.js +16 -0
- package/lib/module/components/Participants/ParticipantsAccordianExpanded.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsGroupFooter.js +53 -0
- package/lib/module/components/Participants/ParticipantsGroupFooter.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsGroupHeader.js +28 -27
- package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsGroupOptions.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItem.js +10 -18
- package/lib/module/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItemOptions.js +24 -2
- package/lib/module/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsList.js +156 -21
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsListFooter.js +35 -0
- package/lib/module/components/Participants/ParticipantsListFooter.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsSeachInput.js +2 -2
- package/lib/module/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/module/components/Participants/index.js +1 -0
- package/lib/module/components/Participants/index.js.map +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js +5 -5
- package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js +14 -7
- package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerMetadata.js +21 -11
- package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +23 -7
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/module/components/Preview.js +6 -2
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/PreviewForRoleChangeModal.js +2 -7
- package/lib/module/components/PreviewForRoleChangeModal.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +54 -21
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/module/components/StopRecordingModalContent.js +4 -1
- package/lib/module/components/StopRecordingModalContent.js.map +1 -1
- package/lib/module/components/WebrtcView.js +2 -1
- package/lib/module/components/WebrtcView.js.map +1 -1
- package/lib/module/components/WelcomeInMeeting.js +29 -8
- package/lib/module/components/WelcomeInMeeting.js.map +1 -1
- package/lib/module/hooks-sdk.js +46 -1
- package/lib/module/hooks-sdk.js.map +1 -1
- package/lib/module/hooks-util.js +314 -143
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/redux/actionTypes.js +10 -2
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +32 -1
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +17 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +191 -20
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/redux/reducers/userState.js +5 -1
- package/lib/module/redux/reducers/userState.js.map +1 -1
- package/lib/module/types.js +9 -0
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/types.js +12 -0
- package/lib/module/utils/types.js.map +1 -1
- package/lib/module/utils.js +0 -6
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/HMSPrebuilt.d.ts +2 -16
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/Chevron/index.d.ts +1 -1
- package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Hand/index.d.ts +1 -0
- package/lib/typescript/Icons/Hand/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Leave/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Recording/index.d.ts +1 -0
- package/lib/typescript/Icons/Recording/index.d.ts.map +1 -1
- package/lib/typescript/Icons/WelcomeHand/index.d.ts +7 -0
- package/lib/typescript/Icons/WelcomeHand/index.d.ts.map +1 -0
- package/lib/typescript/Icons/index.d.ts +1 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ParticipantsView.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModal.d.ts +6 -0
- package/lib/typescript/components/EndRoomModal.d.ts.map +1 -0
- package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Footer.d.ts +1 -0
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSStreamLoading.d.ts.map +1 -1
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts +1 -0
- package/lib/typescript/components/HMSKeyboardAvoidingView.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/HMSNotification.d.ts +1 -0
- package/lib/typescript/components/HMSNotification.d.ts.map +1 -1
- package/lib/typescript/components/HMSNotifications.d.ts +1 -0
- package/lib/typescript/components/HMSNotifications.d.ts.map +1 -1
- package/lib/typescript/components/HMSOverlayChatView.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSReconnectingNotification.d.ts +5 -0
- package/lib/typescript/components/HMSReconnectingNotification.d.ts.map +1 -0
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSTerminalErrorNotification.d.ts +10 -0
- package/lib/typescript/components/HMSTerminalErrorNotification.d.ts.map +1 -0
- package/lib/typescript/components/LeaveRoomBottomSheet.d.ts +6 -0
- package/lib/typescript/components/LeaveRoomBottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/Meeting.d.ts.map +1 -1
- package/lib/typescript/components/PIPView.d.ts +2 -1
- package/lib/typescript/components/PIPView.d.ts.map +1 -1
- package/lib/typescript/components/Participants/MultiRoleParticipantsList.d.ts +7 -0
- package/lib/typescript/components/Participants/MultiRoleParticipantsList.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsAccordian.d.ts +11 -0
- package/lib/typescript/components/Participants/ParticipantsAccordian.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsAccordianExpanded.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsAccordianExpanded.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsGroupFooter.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsGroupFooter.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts +6 -3
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts +0 -2
- package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts +3 -3
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts +2 -2
- package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsList.d.ts +3 -4
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsListFooter.d.ts +6 -0
- package/lib/typescript/components/Participants/ParticipantsListFooter.d.ts.map +1 -0
- package/lib/typescript/components/Participants/index.d.ts +1 -0
- package/lib/typescript/components/Participants/index.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerAudioIndicator.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -1
- package/lib/typescript/components/Preview.d.ts.map +1 -1
- package/lib/typescript/components/PreviewForRoleChangeModal.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/StopRecordingModalContent.d.ts.map +1 -1
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -1
- package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -1
- package/lib/typescript/hooks-sdk.d.ts +4 -0
- package/lib/typescript/hooks-sdk.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +29 -26
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +7 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +36 -14
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +6 -8
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +4 -5
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +16 -3
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +6 -8
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/userState.d.ts +2 -2
- package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +79 -0
- package/lib/typescript/types.d.ts.map +1 -1
- package/lib/typescript/utils/functions.d.ts +0 -1
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +25 -0
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/lib/typescript/utils.d.ts +0 -5
- package/lib/typescript/utils.d.ts.map +1 -1
- package/package.json +3 -4
- package/src/HMSPrebuilt.tsx +35 -29
- package/src/HMSRoomSetup.tsx +105 -53
- package/src/Icons/Chevron/index.tsx +9 -2
- package/src/Icons/Hand/assets/hand-off.png +0 -0
- package/src/Icons/Hand/assets/hand-off@2x.png +0 -0
- package/src/Icons/Hand/assets/hand-off@3x.png +0 -0
- package/src/Icons/Hand/index.tsx +13 -3
- package/src/Icons/Leave/index.tsx +7 -1
- package/src/Icons/Recording/assets/recording-off.png +0 -0
- package/src/Icons/Recording/assets/recording-off@2x.png +0 -0
- package/src/Icons/Recording/assets/recording-off@3x.png +0 -0
- package/src/Icons/Recording/index.tsx +9 -2
- package/src/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
- package/src/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
- package/src/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
- package/src/Icons/WelcomeHand/index.tsx +27 -0
- package/src/Icons/index.ts +1 -0
- package/src/components/ChangeNameModalContent.tsx +28 -9
- package/src/components/ChatAndParticipants/ChatAndParticipantsHeader.tsx +6 -3
- package/src/components/ChatAndParticipants/ParticipantsView.tsx +21 -13
- package/src/components/DisplayView.tsx +6 -0
- package/src/components/EndRoomModal.tsx +24 -0
- package/src/components/EndRoomModalContent.tsx +9 -2
- package/src/components/Footer.tsx +18 -2
- package/src/components/HMSDangerButton.tsx +2 -1
- package/src/components/HMSHLSStreamLoading.tsx +9 -3
- package/src/components/HMSKeyboardAvoidingView.tsx +8 -26
- package/src/components/HMSLiveIndicator.tsx +3 -3
- package/src/components/HMSLocalScreenshareNotification.tsx +1 -1
- package/src/components/HMSManageLeave.tsx +6 -229
- package/src/components/HMSManageRaiseHand.tsx +20 -13
- package/src/components/HMSNotification.tsx +4 -2
- package/src/components/HMSNotifications.tsx +41 -7
- package/src/components/HMSOverlayChatView.tsx +6 -1
- package/src/components/HMSPreviewHLSLiveIndicator.tsx +3 -2
- package/src/components/HMSPreviewJoinButton.tsx +15 -4
- package/src/components/HMSPreviewTile.tsx +1 -1
- package/src/components/HMSReconnectingNotification.tsx +27 -0
- package/src/components/HMSRecordingIndicator.tsx +3 -1
- package/src/components/HMSTerminalErrorNotification.tsx +70 -0
- package/src/components/HMSTextInput.tsx +3 -3
- package/src/components/LeaveRoomBottomSheet.tsx +199 -0
- package/src/components/Meeting.tsx +7 -0
- package/src/components/MeetingScreenContent.tsx +2 -2
- package/src/components/PIPView.tsx +124 -15
- package/src/components/Participants/MultiRoleParticipantsList.tsx +70 -0
- package/src/components/Participants/ParticipantsAccordian.tsx +70 -0
- package/src/components/Participants/ParticipantsAccordianExpanded.tsx +27 -0
- package/src/components/Participants/ParticipantsGroupFooter.tsx +65 -0
- package/src/components/Participants/ParticipantsGroupHeader.tsx +37 -37
- package/src/components/Participants/ParticipantsGroupOptions.tsx +1 -6
- package/src/components/Participants/ParticipantsItem.tsx +16 -33
- package/src/components/Participants/ParticipantsItemOptions.tsx +28 -6
- package/src/components/Participants/ParticipantsList.tsx +197 -34
- package/src/components/Participants/ParticipantsListFooter.tsx +45 -0
- package/src/components/Participants/ParticipantsSeachInput.tsx +2 -2
- package/src/components/Participants/index.ts +1 -0
- package/src/components/PeerVideoTile/AvatarView.tsx +5 -5
- package/src/components/PeerVideoTile/PeerAudioIndicator.tsx +17 -7
- package/src/components/PeerVideoTile/PeerMetadata.tsx +21 -12
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +28 -9
- package/src/components/Preview.tsx +23 -9
- package/src/components/PreviewForRoleChangeModal.tsx +2 -7
- package/src/components/RoomSettingsModalContent.tsx +49 -18
- package/src/components/RoomSettingsModalDebugModeContent.tsx +1 -1
- package/src/components/StopRecordingModalContent.tsx +3 -1
- package/src/components/WebrtcView.tsx +10 -1
- package/src/components/WelcomeInMeeting.tsx +33 -5
- package/src/hooks-sdk.ts +58 -0
- package/src/hooks-util.ts +462 -209
- package/src/index.ts +2 -0
- package/src/redux/actionTypes.ts +11 -1
- package/src/redux/actions/index.ts +36 -8
- package/src/redux/reducers/appState.ts +18 -1
- package/src/redux/reducers/hmsStates.ts +269 -36
- package/src/redux/reducers/userState.ts +7 -3
- package/src/types.ts +71 -0
- package/src/utils/functions.ts +0 -1
- package/src/utils/types.ts +29 -0
- package/src/utils.ts +0 -6
- package/lib/commonjs/assets/welcome.png +0 -0
- package/lib/module/assets/welcome.png +0 -0
- package/src/assets/welcome.png +0 -0
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { shallowEqual, useSelector } from 'react-redux';
|
|
3
3
|
import { StyleSheet, View } from 'react-native';
|
|
4
|
-
import type { HMSPeer } from '@100mslive/react-native-hms';
|
|
5
4
|
|
|
6
5
|
import type { RootState } from '../redux';
|
|
7
6
|
import { HMSLocalScreenshareNotification } from './HMSLocalScreenshareNotification';
|
|
8
7
|
import { HMSHandRaiseNotification } from './HMSHandRaiseNotification';
|
|
9
8
|
import { HMSRoleChangeDeclinedNotification } from './HMSRoleChangeDeclinedNotification';
|
|
10
|
-
import { NotificationTypes } from '../
|
|
9
|
+
import { NotificationTypes } from '../types';
|
|
10
|
+
import { HMSTerminalErrorNotification } from './HMSTerminalErrorNotification';
|
|
11
|
+
import { HMSNotification } from './HMSNotification';
|
|
12
|
+
import { AlertTriangleIcon } from '../Icons';
|
|
13
|
+
import { HMSReconnectingNotification } from './HMSReconnectingNotification';
|
|
11
14
|
|
|
12
15
|
export interface HMSNotificationsProps {}
|
|
13
16
|
|
|
@@ -22,14 +25,11 @@ export const HMSNotifications: React.FC<HMSNotificationsProps> = () => {
|
|
|
22
25
|
);
|
|
23
26
|
|
|
24
27
|
// notifications is a stack, first will appear last
|
|
25
|
-
const notifications:
|
|
26
|
-
| typeof LOCAL_SCREENSHARE_PAYLOAD
|
|
27
|
-
| { id: string; type: string; peer: HMSPeer }
|
|
28
|
-
)[] = useSelector((state: RootState) => {
|
|
28
|
+
const notifications = useSelector((state: RootState) => {
|
|
29
29
|
// Latest notification will be at 0th index.
|
|
30
30
|
const allNotifications = state.app.notifications;
|
|
31
31
|
|
|
32
|
-
let list = [];
|
|
32
|
+
let list: typeof allNotifications = [];
|
|
33
33
|
|
|
34
34
|
if (isLocalScreenShared) {
|
|
35
35
|
list.push(LOCAL_SCREENSHARE_PAYLOAD);
|
|
@@ -101,6 +101,8 @@ export const HMSNotifications: React.FC<HMSNotificationsProps> = () => {
|
|
|
101
101
|
>
|
|
102
102
|
{notification.type === NotificationTypes.LOCAL_SCREENSHARE ? (
|
|
103
103
|
<HMSLocalScreenshareNotification />
|
|
104
|
+
) : notification.type === NotificationTypes.RECONNECTING ? (
|
|
105
|
+
<HMSReconnectingNotification />
|
|
104
106
|
) : notification.type === NotificationTypes.HAND_RAISE &&
|
|
105
107
|
'peer' in notification ? (
|
|
106
108
|
<HMSHandRaiseNotification
|
|
@@ -117,6 +119,22 @@ export const HMSNotifications: React.FC<HMSNotificationsProps> = () => {
|
|
|
117
119
|
autoDismiss={atTop}
|
|
118
120
|
dismissDelay={10000}
|
|
119
121
|
/>
|
|
122
|
+
) : notification.type === NotificationTypes.TERMINAL_ERROR &&
|
|
123
|
+
'exception' in notification ? (
|
|
124
|
+
<HMSTerminalErrorNotification
|
|
125
|
+
id={notification.id}
|
|
126
|
+
exception={notification.exception}
|
|
127
|
+
autoDismiss={false}
|
|
128
|
+
/>
|
|
129
|
+
) : notification.type === NotificationTypes.ERROR &&
|
|
130
|
+
'message' in notification ? (
|
|
131
|
+
<HMSNotification
|
|
132
|
+
icon={<AlertTriangleIcon type="line" />}
|
|
133
|
+
id={notification.id}
|
|
134
|
+
text={notification.message}
|
|
135
|
+
autoDismiss={false}
|
|
136
|
+
dismissable={true}
|
|
137
|
+
/>
|
|
120
138
|
) : null}
|
|
121
139
|
</View>
|
|
122
140
|
);
|
|
@@ -125,6 +143,22 @@ export const HMSNotifications: React.FC<HMSNotificationsProps> = () => {
|
|
|
125
143
|
);
|
|
126
144
|
};
|
|
127
145
|
|
|
146
|
+
export const useHMSNotificationsHeight = () => {
|
|
147
|
+
const numberOfNotifications = useSelector((state: RootState) => {
|
|
148
|
+
const allNotifications = state.app.notifications;
|
|
149
|
+
const isLocalScreenShared = state.hmsStates.isLocalScreenShared;
|
|
150
|
+
|
|
151
|
+
return (
|
|
152
|
+
Math.min(allNotifications.length, isLocalScreenShared ? 2 : 3) +
|
|
153
|
+
(isLocalScreenShared ? 1 : 0)
|
|
154
|
+
);
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
if (numberOfNotifications === 0) return 0;
|
|
158
|
+
|
|
159
|
+
return 8 + (numberOfNotifications - 1) * 16 + 56; // marginBottom + calculated paddingTop + content
|
|
160
|
+
};
|
|
161
|
+
|
|
128
162
|
const styles = StyleSheet.create({
|
|
129
163
|
absoluteContainer: {
|
|
130
164
|
position: 'relative',
|
|
@@ -6,6 +6,8 @@ import MaskedView from '@react-native-masked-view/masked-view';
|
|
|
6
6
|
import { HMSKeyboardAvoidingView } from './HMSKeyboardAvoidingView';
|
|
7
7
|
import { HMSSendMessageInput } from './HMSSendMessageInput';
|
|
8
8
|
import { HMSHLSMessageList } from './HMSHLSMessageList';
|
|
9
|
+
import { useFooterHeight } from './Footer';
|
|
10
|
+
import { useHMSNotificationsHeight } from './HMSNotifications';
|
|
9
11
|
|
|
10
12
|
const colors = [
|
|
11
13
|
'rgba(0, 0, 0, 0)',
|
|
@@ -15,8 +17,11 @@ const colors = [
|
|
|
15
17
|
const colorLocations = [0, 0.4, 1];
|
|
16
18
|
|
|
17
19
|
export const HLSChatView = () => {
|
|
20
|
+
const footerHeight = useFooterHeight();
|
|
21
|
+
const hmsNotificationsHeight = useHMSNotificationsHeight();
|
|
22
|
+
|
|
18
23
|
return (
|
|
19
|
-
<HMSKeyboardAvoidingView>
|
|
24
|
+
<HMSKeyboardAvoidingView bottomOffset={footerHeight + hmsNotificationsHeight}>
|
|
20
25
|
<MaskedView
|
|
21
26
|
maskElement={
|
|
22
27
|
<LinearGradient
|
|
@@ -4,6 +4,7 @@ import { useSelector } from 'react-redux';
|
|
|
4
4
|
|
|
5
5
|
import type { RootState } from '../redux';
|
|
6
6
|
import { useHMSRoomStyleSheet } from '../hooks-util';
|
|
7
|
+
import { COLORS } from '../utils/theme';
|
|
7
8
|
|
|
8
9
|
export const HMSPreviewHLSLiveIndicator = () => {
|
|
9
10
|
const isHLSStreaming = useSelector(
|
|
@@ -15,10 +16,10 @@ export const HMSPreviewHLSLiveIndicator = () => {
|
|
|
15
16
|
backgroundColor: theme.palette.alert_error_default,
|
|
16
17
|
},
|
|
17
18
|
circle: {
|
|
18
|
-
backgroundColor:
|
|
19
|
+
backgroundColor: COLORS.WHITE,
|
|
19
20
|
},
|
|
20
21
|
text: {
|
|
21
|
-
color:
|
|
22
|
+
color: COLORS.WHITE,
|
|
22
23
|
fontFamily: `${typography.font_family}-SemiBold`,
|
|
23
24
|
},
|
|
24
25
|
}));
|
|
@@ -6,7 +6,7 @@ import type { RootState } from '../redux';
|
|
|
6
6
|
import { RadioIcon } from '../Icons';
|
|
7
7
|
import {
|
|
8
8
|
useHMSLayoutConfig,
|
|
9
|
-
|
|
9
|
+
useHMSRoomStyleSheet,
|
|
10
10
|
useShouldGoLive,
|
|
11
11
|
} from '../hooks-util';
|
|
12
12
|
import { HMSPrimaryButton } from './HMSPrimaryButton';
|
|
@@ -36,8 +36,13 @@ export const HMSPreviewJoinButton: React.FC<HMSPreviewJoinButtonProps> = ({
|
|
|
36
36
|
|
|
37
37
|
const shouldGoLive = useShouldGoLive();
|
|
38
38
|
|
|
39
|
-
const
|
|
40
|
-
|
|
39
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme) => ({
|
|
40
|
+
disabledLiveIcon: {
|
|
41
|
+
tintColor: theme.palette.on_primary_low,
|
|
42
|
+
},
|
|
43
|
+
activeLiveIcon: {
|
|
44
|
+
tintColor: theme.palette.on_primary_high,
|
|
45
|
+
},
|
|
41
46
|
}));
|
|
42
47
|
|
|
43
48
|
const disabledJoin = userNameInvalid || loading;
|
|
@@ -54,7 +59,13 @@ export const HMSPreviewJoinButton: React.FC<HMSPreviewJoinButtonProps> = ({
|
|
|
54
59
|
disabled={disabledJoin}
|
|
55
60
|
leftComponent={
|
|
56
61
|
shouldGoLive ? (
|
|
57
|
-
<RadioIcon
|
|
62
|
+
<RadioIcon
|
|
63
|
+
style={
|
|
64
|
+
disabledJoin
|
|
65
|
+
? hmsRoomStyles.disabledLiveIcon
|
|
66
|
+
: hmsRoomStyles.activeLiveIcon
|
|
67
|
+
}
|
|
68
|
+
/>
|
|
58
69
|
) : null
|
|
59
70
|
}
|
|
60
71
|
style={styles.button}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ActivityIndicator } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { HMSNotification } from './HMSNotification';
|
|
5
|
+
import { useHMSRoomColorPalette, useHMSRoomStyle } from '../hooks-util';
|
|
6
|
+
import { NotificationTypes } from '../types';
|
|
7
|
+
|
|
8
|
+
export interface HMSReconnectingNotificationProps {}
|
|
9
|
+
|
|
10
|
+
export const HMSReconnectingNotification: React.FC<
|
|
11
|
+
HMSReconnectingNotificationProps
|
|
12
|
+
> = () => {
|
|
13
|
+
const { on_surface_high: onSurfaceHigh } = useHMSRoomColorPalette();
|
|
14
|
+
const notificationStyle = useHMSRoomStyle((theme) => ({
|
|
15
|
+
backgroundColor: theme.palette.surface_default,
|
|
16
|
+
}));
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<HMSNotification
|
|
20
|
+
id={NotificationTypes.RECONNECTING}
|
|
21
|
+
autoDismiss={false}
|
|
22
|
+
style={notificationStyle}
|
|
23
|
+
text={'You lost your network connection. Trying to reconnect.'}
|
|
24
|
+
icon={<ActivityIndicator size='small' color={onSurfaceHigh} />}
|
|
25
|
+
/>
|
|
26
|
+
);
|
|
27
|
+
};
|
|
@@ -11,7 +11,9 @@ export const HMSRecordingIndicator = () => {
|
|
|
11
11
|
(state: RootState) => !!state.hmsStates.room?.browserRecordingState?.running
|
|
12
12
|
);
|
|
13
13
|
const startingOrStoppingRecording = useSelector(
|
|
14
|
-
(state: RootState) =>
|
|
14
|
+
(state: RootState) =>
|
|
15
|
+
state.app.startingOrStoppingRecording ||
|
|
16
|
+
(state.hmsStates.room?.browserRecordingState.initialising ?? false)
|
|
15
17
|
);
|
|
16
18
|
|
|
17
19
|
const { on_surface_high: onSurfaceHighColor } = useHMSRoomColorPalette();
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { HMSException } from '@100mslive/react-native-hms';
|
|
3
|
+
import { StyleSheet, Text, TouchableOpacity } from 'react-native';
|
|
4
|
+
|
|
5
|
+
import { HMSNotification } from './HMSNotification';
|
|
6
|
+
import { AlertTriangleIcon } from '../Icons';
|
|
7
|
+
import { useHMSRoomStyleSheet, useLeaveMethods } from '../hooks-util';
|
|
8
|
+
import { OnLeaveReason } from '../utils/types';
|
|
9
|
+
import { COLORS } from '../utils/theme';
|
|
10
|
+
|
|
11
|
+
export interface HMSTerminalErrorNotificationProps {
|
|
12
|
+
id: string;
|
|
13
|
+
exception: HMSException;
|
|
14
|
+
autoDismiss?: boolean;
|
|
15
|
+
dismissDelay?: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const HMSTerminalErrorNotification: React.FC<
|
|
19
|
+
HMSTerminalErrorNotificationProps
|
|
20
|
+
> = ({ id, exception, autoDismiss, dismissDelay }) => {
|
|
21
|
+
const { leave } = useLeaveMethods();
|
|
22
|
+
|
|
23
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
24
|
+
button: {
|
|
25
|
+
backgroundColor: theme.palette.alert_error_default,
|
|
26
|
+
},
|
|
27
|
+
buttonText: {
|
|
28
|
+
color: COLORS.WHITE,
|
|
29
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
30
|
+
},
|
|
31
|
+
}));
|
|
32
|
+
|
|
33
|
+
const handleLeaveRoomPress = () => {
|
|
34
|
+
leave(OnLeaveReason.NETWORK_ISSUES);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<HMSNotification
|
|
39
|
+
id={id}
|
|
40
|
+
icon={<AlertTriangleIcon />}
|
|
41
|
+
text={exception.description || 'Something went wrong!'}
|
|
42
|
+
dismissDelay={dismissDelay}
|
|
43
|
+
autoDismiss={autoDismiss}
|
|
44
|
+
cta={(
|
|
45
|
+
<TouchableOpacity
|
|
46
|
+
style={[styles.button, hmsRoomStyles.button]}
|
|
47
|
+
onPress={handleLeaveRoomPress}
|
|
48
|
+
>
|
|
49
|
+
<Text style={[styles.buttonText, hmsRoomStyles.buttonText]}>
|
|
50
|
+
Leave
|
|
51
|
+
</Text>
|
|
52
|
+
</TouchableOpacity>
|
|
53
|
+
)}
|
|
54
|
+
/>
|
|
55
|
+
);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const styles = StyleSheet.create({
|
|
59
|
+
button: {
|
|
60
|
+
paddingVertical: 8,
|
|
61
|
+
paddingHorizontal: 16,
|
|
62
|
+
borderRadius: 8,
|
|
63
|
+
marginRight: 16,
|
|
64
|
+
},
|
|
65
|
+
buttonText: {
|
|
66
|
+
fontSize: 14,
|
|
67
|
+
lineHeight: 20,
|
|
68
|
+
letterSpacing: 0.25,
|
|
69
|
+
},
|
|
70
|
+
});
|
|
@@ -52,7 +52,7 @@ export const HMSTextInput: React.FC<HMSTextInputProps> = ({
|
|
|
52
52
|
const handleInputBlur = () => setInputFocused(false);
|
|
53
53
|
|
|
54
54
|
const {
|
|
55
|
-
|
|
55
|
+
on_surface_medium: onSurfaceMediumColor,
|
|
56
56
|
on_surface_high: onSurfaceHighColor,
|
|
57
57
|
} = useHMSRoomColorPalette();
|
|
58
58
|
|
|
@@ -91,7 +91,7 @@ export const HMSTextInput: React.FC<HMSTextInputProps> = ({
|
|
|
91
91
|
|
|
92
92
|
// ICON STYLES
|
|
93
93
|
sendIcon: {
|
|
94
|
-
tintColor: theme.palette.
|
|
94
|
+
tintColor: theme.palette.on_surface_medium,
|
|
95
95
|
},
|
|
96
96
|
focusedSendIcon: {
|
|
97
97
|
tintColor: theme.palette.on_surface_high,
|
|
@@ -123,7 +123,7 @@ export const HMSTextInput: React.FC<HMSTextInputProps> = ({
|
|
|
123
123
|
autoCapitalize={resetProps.autoCapitalize ?? 'words'}
|
|
124
124
|
autoCompleteType={resetProps.autoCompleteType ?? 'name'}
|
|
125
125
|
placeholderTextColor={
|
|
126
|
-
resetProps.placeholderTextColor ??
|
|
126
|
+
resetProps.placeholderTextColor ?? onSurfaceMediumColor
|
|
127
127
|
}
|
|
128
128
|
selectionColor={resetProps.selectionColor ?? onSurfaceHighColor}
|
|
129
129
|
onFocus={resetProps.onFocus ?? handleInputFocus}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
3
|
+
import { useSelector } from 'react-redux';
|
|
4
|
+
|
|
5
|
+
import { LeaveIcon } from '../Icons';
|
|
6
|
+
import { useHMSRoomStyleSheet, useLeaveMethods, useModalType } from '../hooks-util';
|
|
7
|
+
import type { RootState } from '../redux';
|
|
8
|
+
import { BottomSheet } from './BottomSheet';
|
|
9
|
+
import { StopIcon } from '../Icons';
|
|
10
|
+
import { ModalTypes, OnLeaveReason } from '../utils/types';
|
|
11
|
+
|
|
12
|
+
// const HEADER_CONTENT_HEIGHT = 24 + 8 + 8 + 2; // ICON_SIZE + TOP_PADDING + BOTTOM_PADDING + TOP&BOTTOM_BORDER_WIDTH
|
|
13
|
+
// const HEADER_HEIGHT = 8 + HEADER_CONTENT_HEIGHT + 8; // TOP_HEADER_PADDING + HEADER_CONTENT_HEIGHT + BOTTOM_HEADER_PADDING
|
|
14
|
+
|
|
15
|
+
interface LeaveRoomBottomSheetProps {}
|
|
16
|
+
|
|
17
|
+
export const LeaveRoomBottomSheet: React.FC<LeaveRoomBottomSheetProps> = () => {
|
|
18
|
+
const canEndRoom = useSelector(
|
|
19
|
+
(state: RootState) => state.hmsStates.localPeer?.role?.permissions?.endRoom
|
|
20
|
+
);
|
|
21
|
+
const canStream = useSelector(
|
|
22
|
+
(state: RootState) =>
|
|
23
|
+
state.hmsStates.localPeer?.role?.permissions?.hlsStreaming
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
const isStreaming = useSelector(
|
|
27
|
+
(state: RootState) =>
|
|
28
|
+
state.hmsStates.room?.hlsStreamingState?.running ?? false
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
32
|
+
text: {
|
|
33
|
+
color: theme.palette.on_surface_high,
|
|
34
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
35
|
+
},
|
|
36
|
+
subtext: {
|
|
37
|
+
color: theme.palette.on_surface_low,
|
|
38
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
39
|
+
},
|
|
40
|
+
endButton: {
|
|
41
|
+
backgroundColor: theme.palette.alert_error_dim,
|
|
42
|
+
},
|
|
43
|
+
endText: {
|
|
44
|
+
color: theme.palette.alert_error_brighter,
|
|
45
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
46
|
+
},
|
|
47
|
+
endSubtext: {
|
|
48
|
+
color: theme.palette.alert_error_bright,
|
|
49
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
50
|
+
},
|
|
51
|
+
endIcon: {
|
|
52
|
+
tintColor: theme.palette.alert_error_brighter,
|
|
53
|
+
},
|
|
54
|
+
}));
|
|
55
|
+
|
|
56
|
+
const leavePopCloseAction = React.useRef(ModalTypes.DEFAULT);
|
|
57
|
+
|
|
58
|
+
const { modalVisibleType, handleModalVisibleType } = useModalType();
|
|
59
|
+
|
|
60
|
+
const { leave } = useLeaveMethods();
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Closes the Leave Popup Menu
|
|
64
|
+
* No action is taken when the popup is hidden
|
|
65
|
+
*/
|
|
66
|
+
const onPopupDismiss = () => {
|
|
67
|
+
leavePopCloseAction.current = ModalTypes.DEFAULT;
|
|
68
|
+
handleModalVisibleType(ModalTypes.DEFAULT);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Closes the Leave Popup Menu
|
|
73
|
+
* Leave Modal will open after the popup is hidden
|
|
74
|
+
*/
|
|
75
|
+
const onLeavePress = async () => {
|
|
76
|
+
leavePopCloseAction.current = ModalTypes.DEFAULT;
|
|
77
|
+
handleModalVisibleType(ModalTypes.DEFAULT);
|
|
78
|
+
await leave(OnLeaveReason.LEAVE);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Closes the Leave Popup Menu
|
|
83
|
+
* End Session Modal will open after the popup is hidden
|
|
84
|
+
*/
|
|
85
|
+
const onEndSessionPress = async () => {
|
|
86
|
+
leavePopCloseAction.current = ModalTypes.END_ROOM;
|
|
87
|
+
handleModalVisibleType(ModalTypes.DEFAULT);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const onEndStreamPress = async () => {
|
|
91
|
+
leavePopCloseAction.current = ModalTypes.END_ROOM;
|
|
92
|
+
handleModalVisibleType(ModalTypes.DEFAULT);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Handles action to take when the leave popup is hidden
|
|
97
|
+
*/
|
|
98
|
+
const handlePopupHide = () => {
|
|
99
|
+
if (leavePopCloseAction.current !== ModalTypes.DEFAULT) {
|
|
100
|
+
handleModalVisibleType(leavePopCloseAction.current);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
return (
|
|
105
|
+
<BottomSheet
|
|
106
|
+
isVisible={modalVisibleType === ModalTypes.LEAVE_ROOM}
|
|
107
|
+
containerStyle={styles.container}
|
|
108
|
+
dismissModal={onPopupDismiss}
|
|
109
|
+
onModalHide={handlePopupHide}
|
|
110
|
+
animationOutTiming={700}
|
|
111
|
+
>
|
|
112
|
+
<View>
|
|
113
|
+
<TouchableOpacity
|
|
114
|
+
style={styles.button}
|
|
115
|
+
onPress={onLeavePress}
|
|
116
|
+
>
|
|
117
|
+
<LeaveIcon style={styles.icon} />
|
|
118
|
+
|
|
119
|
+
<View style={styles.textContainer}>
|
|
120
|
+
<Text style={[styles.text, hmsRoomStyles.text]}>
|
|
121
|
+
Leave
|
|
122
|
+
</Text>
|
|
123
|
+
<Text style={[styles.subtext, hmsRoomStyles.subtext]}>
|
|
124
|
+
Others will continue after you leave. You can join the session
|
|
125
|
+
again.
|
|
126
|
+
</Text>
|
|
127
|
+
</View>
|
|
128
|
+
</TouchableOpacity>
|
|
129
|
+
|
|
130
|
+
{canStream && isStreaming ? (
|
|
131
|
+
<TouchableOpacity
|
|
132
|
+
style={[styles.button, hmsRoomStyles.endButton]}
|
|
133
|
+
onPress={onEndStreamPress}
|
|
134
|
+
>
|
|
135
|
+
<StopIcon style={[styles.icon, hmsRoomStyles.endIcon]} />
|
|
136
|
+
|
|
137
|
+
<View style={styles.textContainer}>
|
|
138
|
+
<Text style={[styles.text, hmsRoomStyles.endText]}>
|
|
139
|
+
End Stream
|
|
140
|
+
</Text>
|
|
141
|
+
<Text
|
|
142
|
+
style={[styles.subtext, hmsRoomStyles.endSubtext]}
|
|
143
|
+
>
|
|
144
|
+
The stream will end for everyone after they’ve watched it.
|
|
145
|
+
</Text>
|
|
146
|
+
</View>
|
|
147
|
+
</TouchableOpacity>
|
|
148
|
+
) : canEndRoom ? (
|
|
149
|
+
<TouchableOpacity
|
|
150
|
+
style={[styles.button, hmsRoomStyles.endButton]}
|
|
151
|
+
onPress={onEndSessionPress}
|
|
152
|
+
>
|
|
153
|
+
<StopIcon style={[styles.icon, hmsRoomStyles.endIcon]} />
|
|
154
|
+
|
|
155
|
+
<View style={styles.textContainer}>
|
|
156
|
+
<Text style={[styles.text, hmsRoomStyles.endText]}>
|
|
157
|
+
End Session
|
|
158
|
+
</Text>
|
|
159
|
+
<Text
|
|
160
|
+
style={[styles.subtext, hmsRoomStyles.endSubtext]}
|
|
161
|
+
>
|
|
162
|
+
The session will end for everyone in the room immediately.
|
|
163
|
+
</Text>
|
|
164
|
+
</View>
|
|
165
|
+
</TouchableOpacity>
|
|
166
|
+
) : null}
|
|
167
|
+
</View>
|
|
168
|
+
</BottomSheet>
|
|
169
|
+
);
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
const styles = StyleSheet.create({
|
|
173
|
+
container: {
|
|
174
|
+
paddingBottom: 0,
|
|
175
|
+
},
|
|
176
|
+
button: {
|
|
177
|
+
flexDirection: 'row',
|
|
178
|
+
padding: 24,
|
|
179
|
+
},
|
|
180
|
+
icon: {
|
|
181
|
+
width: 24,
|
|
182
|
+
height: 24,
|
|
183
|
+
marginRight: 16,
|
|
184
|
+
},
|
|
185
|
+
textContainer: {
|
|
186
|
+
flex: 1,
|
|
187
|
+
},
|
|
188
|
+
text: {
|
|
189
|
+
fontSize: 20,
|
|
190
|
+
lineHeight: 24,
|
|
191
|
+
letterSpacing: 0.15,
|
|
192
|
+
},
|
|
193
|
+
subtext: {
|
|
194
|
+
fontSize: 14,
|
|
195
|
+
lineHeight: 20,
|
|
196
|
+
letterSpacing: 0.25,
|
|
197
|
+
marginTop: 4,
|
|
198
|
+
},
|
|
199
|
+
});
|
|
@@ -7,6 +7,8 @@ import type { PeerTrackNode } from '../utils/types';
|
|
|
7
7
|
import { useRTCStatsListeners } from '../utils/hooks';
|
|
8
8
|
import {
|
|
9
9
|
clearPendingModalTasks,
|
|
10
|
+
useAutoPip,
|
|
11
|
+
useBackButtonPress,
|
|
10
12
|
useFetchHMSRoles,
|
|
11
13
|
useHMSMessages,
|
|
12
14
|
useHMSNetworkQualityUpdate,
|
|
@@ -54,6 +56,11 @@ export const Meeting: React.FC<MeetingProps> = ({ peerTrackNodes }) => {
|
|
|
54
56
|
// Subscribe to Peers Network quality updates
|
|
55
57
|
useHMSNetworkQualityUpdate();
|
|
56
58
|
|
|
59
|
+
useAutoPip(peerTrackNodes.length === 1);
|
|
60
|
+
|
|
61
|
+
// Handle Back button press and show leave room modal
|
|
62
|
+
useBackButtonPress();
|
|
63
|
+
|
|
57
64
|
// Clearing any pending modal opening tasks
|
|
58
65
|
React.useEffect(() => {
|
|
59
66
|
return () => {
|
|
@@ -20,7 +20,7 @@ import { HMSStatusBar } from './StatusBar';
|
|
|
20
20
|
import { AnimatedFooter } from './AnimatedFooter';
|
|
21
21
|
import { HLSFooter } from './HLSFooter';
|
|
22
22
|
import { AnimatedHeader } from './AnimatedHeader';
|
|
23
|
-
import { ReconnectionView } from './ReconnectionView';
|
|
23
|
+
// import { ReconnectionView } from './ReconnectionView';
|
|
24
24
|
|
|
25
25
|
interface MeetingScreenContentProps {
|
|
26
26
|
peerTrackNodes: Array<PeerTrackNode>;
|
|
@@ -98,7 +98,7 @@ export const MeetingScreenContent: React.FC<MeetingScreenContentProps> = ({
|
|
|
98
98
|
|
|
99
99
|
<DisplayView offset={offset} peerTrackNodes={peerTrackNodes} />
|
|
100
100
|
|
|
101
|
-
<ReconnectionView />
|
|
101
|
+
{/* <ReconnectionView /> */}
|
|
102
102
|
</View>
|
|
103
103
|
|
|
104
104
|
{isPipModeActive ? null : isHLSViewer ? (
|