@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
package/src/HMSPrebuilt.tsx
CHANGED
|
@@ -1,47 +1,27 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import { Provider } from 'react-redux';
|
|
3
|
+
import { Platform } from 'react-native';
|
|
3
4
|
import {
|
|
4
5
|
SafeAreaInsetsContext,
|
|
5
6
|
SafeAreaProvider,
|
|
6
7
|
} from 'react-native-safe-area-context';
|
|
7
|
-
import { KeyboardProvider } from 'react-native-keyboard-controller';
|
|
8
8
|
|
|
9
9
|
import { store } from './redux/index';
|
|
10
10
|
import { HMSContainer } from './HMSContainer';
|
|
11
|
-
import {
|
|
12
|
-
import type {
|
|
13
|
-
|
|
14
|
-
export interface HMSPrebuiltProps {
|
|
15
|
-
roomCode: string;
|
|
16
|
-
options?: {
|
|
17
|
-
userName?: string;
|
|
18
|
-
userId?: string;
|
|
19
|
-
endPoints?: {
|
|
20
|
-
init: string;
|
|
21
|
-
token: string;
|
|
22
|
-
layout: string;
|
|
23
|
-
};
|
|
24
|
-
debugMode?: boolean;
|
|
25
|
-
ios?: HMSIOSScreenShareConfig;
|
|
26
|
-
};
|
|
27
|
-
onLeave?: () => void;
|
|
28
|
-
}
|
|
11
|
+
import { useSavePropsToStore } from './hooks-util';
|
|
12
|
+
import type { HMSPrebuiltProps } from './types';
|
|
29
13
|
|
|
30
14
|
const _HMSPrebuilt: React.FC<HMSPrebuiltProps> = (props) => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
store.dispatch(setPrebuiltData({ roomCode, options, onLeave }));
|
|
15
|
+
useSavePropsToStore(props, store.dispatch);
|
|
34
16
|
|
|
35
17
|
// @ts-ignore Not using `useContext` hook because we don't want to subscribe to updates
|
|
36
18
|
// We just want to check if SafeAreaProvider exists or not
|
|
37
19
|
const safeAreaProviderExists = !!SafeAreaInsetsContext.Consumer._currentValue;
|
|
38
20
|
|
|
39
21
|
const content = (
|
|
40
|
-
<
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
</Provider>
|
|
44
|
-
</KeyboardProvider>
|
|
22
|
+
<Provider store={store}>
|
|
23
|
+
<HMSContainer />
|
|
24
|
+
</Provider>
|
|
45
25
|
);
|
|
46
26
|
|
|
47
27
|
if (safeAreaProviderExists) {
|
|
@@ -51,5 +31,31 @@ const _HMSPrebuilt: React.FC<HMSPrebuiltProps> = (props) => {
|
|
|
51
31
|
return <SafeAreaProvider>{content}</SafeAreaProvider>;
|
|
52
32
|
};
|
|
53
33
|
|
|
54
|
-
|
|
55
|
-
|
|
34
|
+
const arePropsEqual = (
|
|
35
|
+
prevProps: Readonly<HMSPrebuiltProps>,
|
|
36
|
+
nextProps: Readonly<HMSPrebuiltProps>
|
|
37
|
+
): boolean => {
|
|
38
|
+
if (
|
|
39
|
+
Platform.OS === 'android' &&
|
|
40
|
+
!Object.is(prevProps.handleBackButton, nextProps.handleBackButton)
|
|
41
|
+
) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (
|
|
46
|
+
Platform.OS === 'android' &&
|
|
47
|
+
!Object.is(prevProps.autoEnterPipMode, nextProps.autoEnterPipMode)
|
|
48
|
+
) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (!Object.is(prevProps.onLeave, nextProps.onLeave)) {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return true;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export const HMSPrebuilt = memo(_HMSPrebuilt, arePropsEqual);
|
|
60
|
+
|
|
61
|
+
export { type HMSPrebuiltProps };
|
package/src/HMSRoomSetup.tsx
CHANGED
|
@@ -5,22 +5,15 @@ import {
|
|
|
5
5
|
HMSUpdateListenerActions,
|
|
6
6
|
} from '@100mslive/react-native-hms';
|
|
7
7
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
8
|
-
import {
|
|
9
|
-
Alert,
|
|
10
|
-
Keyboard,
|
|
11
|
-
Platform,
|
|
12
|
-
StatusBar,
|
|
13
|
-
StyleSheet,
|
|
14
|
-
View,
|
|
15
|
-
} from 'react-native';
|
|
8
|
+
import { Alert, Keyboard, StatusBar, StyleSheet, View } from 'react-native';
|
|
16
9
|
import Toast from 'react-native-simple-toast';
|
|
17
10
|
import { batch, useDispatch, useSelector, useStore } from 'react-redux';
|
|
18
11
|
|
|
19
12
|
import { Preview } from './components';
|
|
20
13
|
import {
|
|
14
|
+
addNotification,
|
|
21
15
|
changeMeetingState,
|
|
22
16
|
changeStartingHLSStream,
|
|
23
|
-
clearStore,
|
|
24
17
|
setHMSLocalPeerState,
|
|
25
18
|
setHMSRoomState,
|
|
26
19
|
setLocalPeerTrackNode,
|
|
@@ -28,6 +21,7 @@ import {
|
|
|
28
21
|
updateLocalPeerTrackNode,
|
|
29
22
|
} from './redux/actions';
|
|
30
23
|
import { createPeerTrackNode } from './utils/functions';
|
|
24
|
+
import { OnLeaveReason, TerminalExceptionCodes } from './utils/types';
|
|
31
25
|
import type { PeerTrackNode } from './utils/types';
|
|
32
26
|
import { Meeting } from './components/Meeting';
|
|
33
27
|
import {
|
|
@@ -47,7 +41,7 @@ import {
|
|
|
47
41
|
replacePeerTrackNodes,
|
|
48
42
|
peerTrackNodeExistForPeer,
|
|
49
43
|
} from './peerTrackNodeUtils';
|
|
50
|
-
import { MeetingState } from './types';
|
|
44
|
+
import { MeetingState, NotificationTypes } from './types';
|
|
51
45
|
import { getJoinConfig } from './utils';
|
|
52
46
|
import { FullScreenIndicator } from './components/FullScreenIndicator';
|
|
53
47
|
import { HMSMeetingEnded } from './components/HMSMeetingEnded';
|
|
@@ -72,7 +66,7 @@ export const HMSRoomSetup = () => {
|
|
|
72
66
|
const hmsInstance = useHMSInstance();
|
|
73
67
|
const dispatch = useDispatch();
|
|
74
68
|
const reduxStore = useStore<RootState>();
|
|
75
|
-
const {
|
|
69
|
+
const { leave, destroy, prebuiltCleanUp } = useLeaveMethods();
|
|
76
70
|
|
|
77
71
|
const { getConfig, clearConfig } = useHMSConfig();
|
|
78
72
|
const meetingState = useSelector(
|
|
@@ -82,18 +76,52 @@ export const HMSRoomSetup = () => {
|
|
|
82
76
|
const [loading, setLoading] = useState(false);
|
|
83
77
|
|
|
84
78
|
const joinMeeting = useCallback(async () => {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
79
|
+
try {
|
|
80
|
+
setLoading(true);
|
|
81
|
+
Keyboard.dismiss();
|
|
82
|
+
const hmsConfig = await getConfig();
|
|
83
|
+
// TODO: handle case when promise returned from `getConfig()` is resolved when Root component has been unmounted
|
|
84
|
+
hmsInstance.join(hmsConfig);
|
|
85
|
+
} catch (error: any) {
|
|
86
|
+
Alert.alert(
|
|
87
|
+
error.code,
|
|
88
|
+
error.message,
|
|
89
|
+
[
|
|
90
|
+
{
|
|
91
|
+
text: 'Leave',
|
|
92
|
+
style: 'destructive',
|
|
93
|
+
onPress: () => {
|
|
94
|
+
leave(OnLeaveReason.LEAVE);
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
{ cancelable: false }
|
|
99
|
+
);
|
|
100
|
+
}
|
|
90
101
|
}, [getConfig, hmsInstance]);
|
|
91
102
|
|
|
92
103
|
const previewMeeting = useCallback(async () => {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
104
|
+
try {
|
|
105
|
+
setLoading(true);
|
|
106
|
+
const hmsConfig = await getConfig();
|
|
107
|
+
// TODO: handle case when promise returned from `getConfig()` is resolved when Root component has been unmounted
|
|
108
|
+
hmsInstance.preview(hmsConfig);
|
|
109
|
+
} catch (error: any) {
|
|
110
|
+
Alert.alert(
|
|
111
|
+
error.code,
|
|
112
|
+
error.message,
|
|
113
|
+
[
|
|
114
|
+
{
|
|
115
|
+
text: 'Leave',
|
|
116
|
+
style: 'destructive',
|
|
117
|
+
onPress: () => {
|
|
118
|
+
destroy(OnLeaveReason.LEAVE);
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
{ cancelable: false }
|
|
123
|
+
);
|
|
124
|
+
}
|
|
97
125
|
}, [getConfig, hmsInstance]);
|
|
98
126
|
|
|
99
127
|
const startHLSStreaming = useCallback(async () => {
|
|
@@ -105,10 +133,13 @@ export const HMSRoomSetup = () => {
|
|
|
105
133
|
console.log('Start HLS Streaming Error: ', e);
|
|
106
134
|
if (!ignoreHLSStreamPromise.current) {
|
|
107
135
|
console.log('Unable to go live at the moment: ', e);
|
|
108
|
-
|
|
136
|
+
// prebuiltCleanUp();
|
|
109
137
|
}
|
|
110
138
|
}
|
|
111
|
-
}, [
|
|
139
|
+
}, [
|
|
140
|
+
// prebuiltCleanUp,
|
|
141
|
+
hmsInstance
|
|
142
|
+
]);
|
|
112
143
|
|
|
113
144
|
// HMS Room, Peers, Track Listeners
|
|
114
145
|
useHMSListeners(setPeerTrackNodes);
|
|
@@ -126,34 +157,60 @@ export const HMSRoomSetup = () => {
|
|
|
126
157
|
*/
|
|
127
158
|
useHMSSessionStore();
|
|
128
159
|
|
|
160
|
+
const meetingJoined = meetingState === MeetingState.IN_MEETING;
|
|
161
|
+
const previewing = meetingState === MeetingState.IN_PREVIEW;
|
|
162
|
+
|
|
129
163
|
// HMS Error Listener
|
|
130
164
|
useEffect(() => {
|
|
131
165
|
const hmsErrorHandler = (error: HMSException) => {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
166
|
+
const terminalError =
|
|
167
|
+
error.isTerminal || TerminalExceptionCodes.includes(error.code);
|
|
168
|
+
|
|
169
|
+
if (meetingJoined) {
|
|
170
|
+
const uid = Math.random().toString(16).slice(2);
|
|
171
|
+
const notificationPayload = terminalError
|
|
172
|
+
? {
|
|
173
|
+
id: uid,
|
|
174
|
+
type: NotificationTypes.TERMINAL_ERROR,
|
|
175
|
+
exception: error,
|
|
176
|
+
}
|
|
177
|
+
: {
|
|
178
|
+
id: uid,
|
|
179
|
+
type: NotificationTypes.ERROR,
|
|
180
|
+
message: error.description,
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
dispatch(addNotification(notificationPayload));
|
|
184
|
+
} else {
|
|
185
|
+
setLoading(false);
|
|
186
|
+
|
|
187
|
+
if (terminalError) {
|
|
188
|
+
Alert.alert(
|
|
189
|
+
error.code.toString(),
|
|
190
|
+
error.description || 'Something went wrong',
|
|
191
|
+
[
|
|
192
|
+
{
|
|
193
|
+
text: 'Leave',
|
|
194
|
+
style: 'destructive',
|
|
195
|
+
onPress: () => {
|
|
196
|
+
if (previewing) {
|
|
197
|
+
leave(OnLeaveReason.NETWORK_ISSUES);
|
|
198
|
+
} else {
|
|
199
|
+
destroy(OnLeaveReason.NETWORK_ISSUES);
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
{ cancelable: false }
|
|
205
|
+
);
|
|
206
|
+
} else {
|
|
207
|
+
Toast.showWithGravity(
|
|
208
|
+
`${error?.code} ${error?.description}` || 'Something went wrong',
|
|
209
|
+
Toast.LONG,
|
|
210
|
+
Toast.TOP
|
|
211
|
+
);
|
|
212
|
+
}
|
|
150
213
|
}
|
|
151
|
-
|
|
152
|
-
Toast.showWithGravity(
|
|
153
|
-
`${error?.code} ${error?.description}` || 'Something went wrong',
|
|
154
|
-
Toast.LONG,
|
|
155
|
-
Toast.TOP
|
|
156
|
-
);
|
|
157
214
|
};
|
|
158
215
|
|
|
159
216
|
hmsInstance.addEventListener(
|
|
@@ -164,7 +221,7 @@ export const HMSRoomSetup = () => {
|
|
|
164
221
|
return () => {
|
|
165
222
|
hmsInstance.removeEventListener(HMSUpdateListenerActions.ON_ERROR);
|
|
166
223
|
};
|
|
167
|
-
}, [hmsInstance]);
|
|
224
|
+
}, [previewing, meetingJoined, hmsInstance]);
|
|
168
225
|
|
|
169
226
|
// HMS Preview Listener
|
|
170
227
|
useEffect(() => {
|
|
@@ -294,8 +351,6 @@ export const HMSRoomSetup = () => {
|
|
|
294
351
|
};
|
|
295
352
|
}, [startHLSStreaming, hmsInstance]);
|
|
296
353
|
|
|
297
|
-
const meetingJoined = meetingState === MeetingState.IN_MEETING;
|
|
298
|
-
|
|
299
354
|
// HMS Active Speaker Listener
|
|
300
355
|
// dev-note: This is added here because we have `setPeerTrackNodes` here
|
|
301
356
|
useHMSActiveSpeakerUpdates(setPeerTrackNodes, meetingJoined);
|
|
@@ -333,13 +388,10 @@ export const HMSRoomSetup = () => {
|
|
|
333
388
|
}
|
|
334
389
|
}, [meetingEnded]);
|
|
335
390
|
|
|
336
|
-
const { leave } = useLeaveMethods(true);
|
|
337
|
-
|
|
338
391
|
useEffect(() => {
|
|
339
392
|
return () => {
|
|
340
393
|
ignoreHLSStreamPromise.current = true;
|
|
341
|
-
|
|
342
|
-
dispatch(clearStore());
|
|
394
|
+
prebuiltCleanUp();
|
|
343
395
|
};
|
|
344
396
|
}, []);
|
|
345
397
|
|
|
@@ -5,7 +5,7 @@ import type { ImageProps } from 'react-native';
|
|
|
5
5
|
import { useHMSRoomStyle } from '../../hooks-util';
|
|
6
6
|
|
|
7
7
|
interface ChevronIconProps extends Omit<ImageProps, 'source'> {
|
|
8
|
-
direction: 'left' | 'down';
|
|
8
|
+
direction: 'left' | 'down' | 'right' | 'top';
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export const ChevronIcon: React.FC<ChevronIconProps> = ({
|
|
@@ -24,7 +24,14 @@ export const ChevronIcon: React.FC<ChevronIconProps> = ({
|
|
|
24
24
|
? require('./assets/chevron-down.png')
|
|
25
25
|
: require('./assets/chevron-left.png')
|
|
26
26
|
}
|
|
27
|
-
style={[
|
|
27
|
+
style={[
|
|
28
|
+
styles.icon,
|
|
29
|
+
direction === 'right' || direction === 'top' ? {
|
|
30
|
+
transform: [{rotateZ: direction === 'right' ? '180deg' : '90deg' }]
|
|
31
|
+
} : null,
|
|
32
|
+
iconStyles,
|
|
33
|
+
style,
|
|
34
|
+
]}
|
|
28
35
|
{...restProps}
|
|
29
36
|
/>
|
|
30
37
|
);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/Icons/Hand/index.tsx
CHANGED
|
@@ -4,16 +4,26 @@ import type { ImageProps } from 'react-native';
|
|
|
4
4
|
|
|
5
5
|
import { useHMSRoomStyle } from '../../hooks-util';
|
|
6
6
|
|
|
7
|
-
interface HandIconProps extends Omit<ImageProps, 'source'> {
|
|
7
|
+
interface HandIconProps extends Omit<ImageProps, 'source'> {
|
|
8
|
+
type?: 'off' | 'on';
|
|
9
|
+
}
|
|
8
10
|
|
|
9
|
-
export const HandIcon: React.FC<HandIconProps> = ({
|
|
11
|
+
export const HandIcon: React.FC<HandIconProps> = ({
|
|
12
|
+
style,
|
|
13
|
+
type = 'on',
|
|
14
|
+
...restProps
|
|
15
|
+
}) => {
|
|
10
16
|
const iconStyles = useHMSRoomStyle((theme) => ({
|
|
11
17
|
tintColor: theme.palette.on_surface_high,
|
|
12
18
|
}));
|
|
13
19
|
|
|
14
20
|
return (
|
|
15
21
|
<Image
|
|
16
|
-
source={
|
|
22
|
+
source={
|
|
23
|
+
type === 'on'
|
|
24
|
+
? require('./assets/hand.png')
|
|
25
|
+
: require('./assets/hand-off.png')
|
|
26
|
+
}
|
|
17
27
|
style={[styles.icon, iconStyles, style]}
|
|
18
28
|
{...restProps}
|
|
19
29
|
/>
|
|
@@ -2,16 +2,22 @@ import React from 'react';
|
|
|
2
2
|
import { Image, StyleSheet } from 'react-native';
|
|
3
3
|
import type { ImageProps } from 'react-native';
|
|
4
4
|
|
|
5
|
+
import { useHMSRoomStyle } from '../../hooks-util';
|
|
6
|
+
|
|
5
7
|
interface LeaveIconProps extends Omit<ImageProps, 'source'> {}
|
|
6
8
|
|
|
7
9
|
export const LeaveIcon: React.FC<LeaveIconProps> = ({
|
|
8
10
|
style,
|
|
9
11
|
...restProps
|
|
10
12
|
}) => {
|
|
13
|
+
const iconStyles = useHMSRoomStyle((theme) => ({
|
|
14
|
+
tintColor: theme.palette.on_surface_high,
|
|
15
|
+
}));
|
|
16
|
+
|
|
11
17
|
return (
|
|
12
18
|
<Image
|
|
13
19
|
source={require('./assets/leave.png')}
|
|
14
|
-
style={[styles.icon, style]}
|
|
20
|
+
style={[styles.icon, iconStyles, style]}
|
|
15
21
|
{...restProps}
|
|
16
22
|
/>
|
|
17
23
|
);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -4,10 +4,13 @@ import type { ImageProps } from 'react-native';
|
|
|
4
4
|
|
|
5
5
|
import { useHMSRoomStyle } from '../../hooks-util';
|
|
6
6
|
|
|
7
|
-
interface RecordingIconProps extends Omit<ImageProps, 'source'> {
|
|
7
|
+
interface RecordingIconProps extends Omit<ImageProps, 'source'> {
|
|
8
|
+
type?: 'off' | 'on';
|
|
9
|
+
}
|
|
8
10
|
|
|
9
11
|
export const RecordingIcon: React.FC<RecordingIconProps> = ({
|
|
10
12
|
style,
|
|
13
|
+
type = 'on',
|
|
11
14
|
...restProps
|
|
12
15
|
}) => {
|
|
13
16
|
const iconStyles = useHMSRoomStyle((theme) => ({
|
|
@@ -16,7 +19,11 @@ export const RecordingIcon: React.FC<RecordingIconProps> = ({
|
|
|
16
19
|
|
|
17
20
|
return (
|
|
18
21
|
<Image
|
|
19
|
-
source={
|
|
22
|
+
source={
|
|
23
|
+
type === 'on'
|
|
24
|
+
? require('./assets/recording.png')
|
|
25
|
+
: require('./assets/recording-off.png')
|
|
26
|
+
}
|
|
20
27
|
style={[styles.icon, iconStyles, style]}
|
|
21
28
|
{...restProps}
|
|
22
29
|
/>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Image, StyleSheet } from 'react-native';
|
|
3
|
+
import type { ImageProps } from 'react-native';
|
|
4
|
+
|
|
5
|
+
interface WelcomeHandIconProps extends Omit<ImageProps, 'source'> {}
|
|
6
|
+
|
|
7
|
+
export const WelcomeHandIcon: React.FC<WelcomeHandIconProps> = ({
|
|
8
|
+
style,
|
|
9
|
+
...restProps
|
|
10
|
+
}) => {
|
|
11
|
+
return (
|
|
12
|
+
<Image
|
|
13
|
+
source={require('./assets/welcome-hand.png')}
|
|
14
|
+
style={[styles.icon, style]}
|
|
15
|
+
{...restProps}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const styles = StyleSheet.create({
|
|
21
|
+
icon: {
|
|
22
|
+
width: 64,
|
|
23
|
+
height: 64,
|
|
24
|
+
alignItems: 'center',
|
|
25
|
+
justifyContent: 'center',
|
|
26
|
+
},
|
|
27
|
+
});
|
package/src/Icons/index.ts
CHANGED
|
@@ -9,12 +9,13 @@ import {
|
|
|
9
9
|
import { useSelector } from 'react-redux';
|
|
10
10
|
|
|
11
11
|
import type { RootState } from '../redux';
|
|
12
|
-
import { useHMSRoomStyleSheet } from '../hooks-util';
|
|
13
|
-
import { BottomSheet } from './BottomSheet';
|
|
12
|
+
import { isPublishingAllowed, useHMSRoomStyleSheet, useModalType } from '../hooks-util';
|
|
13
|
+
import { BottomSheet, useBottomSheetActions } from './BottomSheet';
|
|
14
14
|
import { ChevronIcon, CloseIcon } from '../Icons';
|
|
15
15
|
import { HMSTextInput } from './HMSTextInput';
|
|
16
16
|
import { HMSPrimaryButton } from './HMSPrimaryButton';
|
|
17
17
|
import { useHMSActions } from '../hooks-sdk';
|
|
18
|
+
import { ModalTypes } from '../utils/types';
|
|
18
19
|
|
|
19
20
|
export interface ChangeNameModalContentProps {
|
|
20
21
|
dismissModal(): void;
|
|
@@ -27,10 +28,18 @@ export const ChangeNameModalContent: React.FC<ChangeNameModalContentProps> = ({
|
|
|
27
28
|
const localPeerName = useSelector(
|
|
28
29
|
(state: RootState) => state.hmsStates.localPeer?.name || ''
|
|
29
30
|
);
|
|
31
|
+
const isPublisher = useSelector((state: RootState) => {
|
|
32
|
+
const localPeer = state.hmsStates.localPeer;
|
|
33
|
+
return localPeer ? isPublishingAllowed(localPeer) : false;
|
|
34
|
+
});
|
|
30
35
|
|
|
31
36
|
const [name, setName] = React.useState(localPeerName);
|
|
32
37
|
const [nameChangeLoading, setNameChangeLoading] = React.useState(false);
|
|
33
38
|
|
|
39
|
+
const { handleModalVisibleType } = useModalType();
|
|
40
|
+
|
|
41
|
+
const { registerOnModalHideAction } = useBottomSheetActions();
|
|
42
|
+
|
|
34
43
|
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
35
44
|
headerText: {
|
|
36
45
|
color: theme.palette.on_surface_high,
|
|
@@ -44,6 +53,11 @@ export const ChangeNameModalContent: React.FC<ChangeNameModalContentProps> = ({
|
|
|
44
53
|
const handleBackPress = () => {
|
|
45
54
|
Keyboard.dismiss();
|
|
46
55
|
|
|
56
|
+
// Open SETTINGS bottom sheet when current sheet is closed
|
|
57
|
+
registerOnModalHideAction(() => {
|
|
58
|
+
handleModalVisibleType(ModalTypes.SETTINGS);
|
|
59
|
+
});
|
|
60
|
+
|
|
47
61
|
// Close current bottom sheet
|
|
48
62
|
dismissModal();
|
|
49
63
|
};
|
|
@@ -71,12 +85,15 @@ export const ChangeNameModalContent: React.FC<ChangeNameModalContentProps> = ({
|
|
|
71
85
|
{/* Header */}
|
|
72
86
|
<View style={styles.header}>
|
|
73
87
|
<View style={styles.headerControls}>
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
88
|
+
{isPublisher ? null : (
|
|
89
|
+
<TouchableOpacity
|
|
90
|
+
onPress={handleBackPress}
|
|
91
|
+
hitSlop={styles.closeIconHitSlop}
|
|
92
|
+
style={styles.backIcon}
|
|
93
|
+
>
|
|
94
|
+
<ChevronIcon direction="left" />
|
|
95
|
+
</TouchableOpacity>
|
|
96
|
+
)}
|
|
80
97
|
|
|
81
98
|
<Text style={[styles.headerText, hmsRoomStyles.headerText]}>
|
|
82
99
|
Change Name
|
|
@@ -130,7 +147,6 @@ const styles = StyleSheet.create({
|
|
|
130
147
|
fontSize: 16,
|
|
131
148
|
lineHeight: 24,
|
|
132
149
|
letterSpacing: 0.15,
|
|
133
|
-
marginLeft: 8,
|
|
134
150
|
},
|
|
135
151
|
closeIconHitSlop: {
|
|
136
152
|
bottom: 16,
|
|
@@ -138,6 +154,9 @@ const styles = StyleSheet.create({
|
|
|
138
154
|
right: 16,
|
|
139
155
|
top: 16,
|
|
140
156
|
},
|
|
157
|
+
backIcon: {
|
|
158
|
+
marginRight: 8,
|
|
159
|
+
},
|
|
141
160
|
contentContainer: {
|
|
142
161
|
marginHorizontal: 24,
|
|
143
162
|
},
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
useShowChatAndParticipants,
|
|
9
9
|
} from '../../hooks-util';
|
|
10
10
|
import type { RootState } from '../../redux';
|
|
11
|
-
import { COLORS } from '../../utils/theme';
|
|
12
11
|
import { ChatBottomSheetTabs } from '../../utils/types';
|
|
13
12
|
import { setActiveChatBottomSheetTab } from '../../redux/actions';
|
|
14
13
|
|
|
@@ -25,6 +24,9 @@ const _ChatAndParticipantsHeader: React.FC<WebrtcChatHeaderProps> = ({
|
|
|
25
24
|
);
|
|
26
25
|
|
|
27
26
|
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
27
|
+
headerTitleWrapper: {
|
|
28
|
+
backgroundColor: theme.palette.surface_default,
|
|
29
|
+
},
|
|
28
30
|
tab: {
|
|
29
31
|
backgroundColor: theme.palette.surface_bright,
|
|
30
32
|
},
|
|
@@ -67,7 +69,9 @@ const _ChatAndParticipantsHeader: React.FC<WebrtcChatHeaderProps> = ({
|
|
|
67
69
|
: null}
|
|
68
70
|
</Text>
|
|
69
71
|
) : (
|
|
70
|
-
<View
|
|
72
|
+
<View
|
|
73
|
+
style={[styles.headerTitleWrapper, hmsRoomStyles.headerTitleWrapper]}
|
|
74
|
+
>
|
|
71
75
|
{visibleChatBottomSheetTabs.map((tab) => {
|
|
72
76
|
const isActive = activeChatBottomSheetTab === tab;
|
|
73
77
|
|
|
@@ -118,7 +122,6 @@ const styles = StyleSheet.create({
|
|
|
118
122
|
flexDirection: 'row',
|
|
119
123
|
padding: 4,
|
|
120
124
|
borderRadius: 8,
|
|
121
|
-
backgroundColor: COLORS.SURFACE.DEFAULT,
|
|
122
125
|
marginRight: 16,
|
|
123
126
|
},
|
|
124
127
|
tab: {
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { View, StyleSheet } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import { useFilteredParticipants } from '../../hooks-util';
|
|
5
4
|
import { ParticipantsList, ParticipantsSearchInput } from '../Participants';
|
|
5
|
+
import { MultiRoleParticipantsList } from '../Participants/MultiRoleParticipantsList';
|
|
6
6
|
|
|
7
7
|
type ParticipantsViewProps = {};
|
|
8
8
|
|
|
9
9
|
export const ParticipantsView: React.FC<ParticipantsViewProps> = () => {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
const [searchText, setSearchText] = React.useState('');
|
|
11
|
+
const [selectedGroupId, setSelectedGroupId] = React.useState<string | null>(
|
|
12
|
+
null
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
const clearSelectedGroup = React.useCallback(() => {
|
|
16
|
+
setSelectedGroupId(null);
|
|
17
|
+
}, []);
|
|
17
18
|
|
|
18
19
|
return (
|
|
19
20
|
<>
|
|
@@ -23,11 +24,18 @@ export const ParticipantsView: React.FC<ParticipantsViewProps> = () => {
|
|
|
23
24
|
/>
|
|
24
25
|
|
|
25
26
|
<View style={styles.listWrapper}>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
{selectedGroupId === null ? (
|
|
28
|
+
<MultiRoleParticipantsList
|
|
29
|
+
searchText={searchText}
|
|
30
|
+
onViewAllPress={setSelectedGroupId}
|
|
31
|
+
/>
|
|
32
|
+
) : (
|
|
33
|
+
<ParticipantsList
|
|
34
|
+
searchText={searchText}
|
|
35
|
+
selectedGroupId={selectedGroupId}
|
|
36
|
+
onBackPress={clearSelectedGroup}
|
|
37
|
+
/>
|
|
38
|
+
)}
|
|
31
39
|
</View>
|
|
32
40
|
</>
|
|
33
41
|
);
|