@100mslive/react-native-room-kit 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/HMSRoomSetup.js +1 -0
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/Recording/assets/recording-pause.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording-pause@2x.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording-pause@3x.png +0 -0
- package/lib/commonjs/Icons/Recording/index.js +1 -1
- package/lib/commonjs/Icons/Recording/index.js.map +1 -1
- package/lib/commonjs/components/AnimatedFooter.js +5 -3
- package/lib/commonjs/components/AnimatedFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHLSFooter.js +4 -9
- package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -1
- package/lib/commonjs/components/AnimatedHeader.js +17 -5
- package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
- package/lib/commonjs/components/AvatarView.js +0 -1
- package/lib/commonjs/components/AvatarView.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +23 -7
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatBanner.js +10 -3
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +7 -2
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +14 -10
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +5 -3
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
- package/lib/commonjs/components/DefaultModal.js +9 -1
- package/lib/commonjs/components/DefaultModal.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +4 -11
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModal.js +1 -2
- package/lib/commonjs/components/EndRoomModal.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +2 -1
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/Footer.js +12 -8
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/GridView.js +53 -9
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HLSFooter.js +3 -1
- package/lib/commonjs/components/HLSFooter.js.map +1 -1
- package/lib/commonjs/components/HLSView.js +1 -1
- package/lib/commonjs/components/HLSView.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessageList.js +5 -2
- package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.android.js +44 -0
- package/lib/commonjs/components/HMSKeyboardAvoidingView.android.js.map +1 -0
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +3 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/commonjs/components/HMSLiveIndicator.js +6 -57
- package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSLiveViewerCount.js +78 -0
- package/lib/commonjs/components/HMSLiveViewerCount.js.map +1 -0
- package/lib/commonjs/components/HMSManageAudioOutput.js +0 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSNotifications.js +9 -1
- package/lib/commonjs/components/HMSNotifications.js.map +1 -1
- package/lib/commonjs/components/HMSOverlayChatView.js +11 -2
- package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewEditName.js +6 -1
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +2 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSRecordingIndicator.js +15 -4
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSRoomOptions.js +3 -6
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSTextInput.js +2 -3
- package/lib/commonjs/components/HMSTextInput.js.map +1 -1
- package/lib/commonjs/components/Header.js +11 -3
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LeaveRoomBottomSheet.js +4 -7
- package/lib/commonjs/components/LeaveRoomBottomSheet.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +2 -13
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +45 -45
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +12 -13
- package/lib/commonjs/components/MiniView.js.map +1 -1
- package/lib/commonjs/components/OverlayedViews.js +6 -2
- package/lib/commonjs/components/OverlayedViews.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +1 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js +2 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +0 -1
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +2 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +0 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +6 -2
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +2 -1
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +25 -9
- 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/TilesContainer.js +3 -3
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/WebrtcView.js +37 -2
- package/lib/commonjs/components/WebrtcView.js.map +1 -1
- package/lib/commonjs/hooks-util-selectors.js +2 -1
- package/lib/commonjs/hooks-util-selectors.js.map +1 -1
- package/lib/commonjs/hooks-util.js +78 -31
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +3 -1
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +8 -1
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +9 -1
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/utils/theme.js +0 -1
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +3 -3
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/commonjs/utils.js +0 -1
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +2 -1
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/Recording/assets/recording-pause.png +0 -0
- package/lib/module/Icons/Recording/assets/recording-pause@2x.png +0 -0
- package/lib/module/Icons/Recording/assets/recording-pause@3x.png +0 -0
- package/lib/module/Icons/Recording/index.js +1 -1
- package/lib/module/Icons/Recording/index.js.map +1 -1
- package/lib/module/components/AnimatedFooter.js +5 -3
- package/lib/module/components/AnimatedFooter.js.map +1 -1
- package/lib/module/components/AnimatedHLSFooter.js +5 -10
- package/lib/module/components/AnimatedHLSFooter.js.map +1 -1
- package/lib/module/components/AnimatedHeader.js +18 -6
- package/lib/module/components/AnimatedHeader.js.map +1 -1
- package/lib/module/components/AvatarView.js +0 -1
- package/lib/module/components/AvatarView.js.map +1 -1
- package/lib/module/components/BottomSheet.js +24 -8
- package/lib/module/components/BottomSheet.js.map +1 -1
- package/lib/module/components/Chat/ChatBanner.js +10 -3
- package/lib/module/components/Chat/ChatBanner.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterBottomSheetView.js +7 -2
- package/lib/module/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +16 -12
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js +6 -4
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
- package/lib/module/components/DefaultModal.js +9 -1
- package/lib/module/components/DefaultModal.js.map +1 -1
- package/lib/module/components/DisplayView.js +5 -12
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/EndRoomModal.js +1 -2
- package/lib/module/components/EndRoomModal.js.map +1 -1
- package/lib/module/components/EndRoomModalContent.js +2 -1
- package/lib/module/components/EndRoomModalContent.js.map +1 -1
- package/lib/module/components/Footer.js +12 -9
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/GridView.js +54 -10
- package/lib/module/components/GridView.js.map +1 -1
- package/lib/module/components/HLSFooter.js +3 -1
- package/lib/module/components/HLSFooter.js.map +1 -1
- package/lib/module/components/HLSView.js +2 -2
- package/lib/module/components/HLSView.js.map +1 -1
- package/lib/module/components/HMSHLSMessageList.js +5 -2
- package/lib/module/components/HMSHLSMessageList.js.map +1 -1
- package/lib/module/components/HMSKeyboardAvoidingView.android.js +33 -0
- package/lib/module/components/HMSKeyboardAvoidingView.android.js.map +1 -0
- package/lib/module/components/HMSKeyboardAvoidingView.js +3 -1
- package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/module/components/HMSLiveIndicator.js +9 -60
- package/lib/module/components/HMSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSLiveViewerCount.js +70 -0
- package/lib/module/components/HMSLiveViewerCount.js.map +1 -0
- package/lib/module/components/HMSManageAudioOutput.js +0 -1
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/module/components/HMSNotifications.js +9 -2
- package/lib/module/components/HMSNotifications.js.map +1 -1
- package/lib/module/components/HMSOverlayChatView.js +11 -2
- package/lib/module/components/HMSOverlayChatView.js.map +1 -1
- package/lib/module/components/HMSPreviewEditName.js +6 -1
- package/lib/module/components/HMSPreviewEditName.js.map +1 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js +2 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSRecordingIndicator.js +15 -4
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -1
- package/lib/module/components/HMSRoomOptions.js +3 -6
- package/lib/module/components/HMSRoomOptions.js.map +1 -1
- package/lib/module/components/HMSTextInput.js +2 -3
- package/lib/module/components/HMSTextInput.js.map +1 -1
- package/lib/module/components/Header.js +10 -3
- package/lib/module/components/Header.js.map +1 -1
- package/lib/module/components/LeaveRoomBottomSheet.js +5 -7
- package/lib/module/components/LeaveRoomBottomSheet.js.map +1 -1
- package/lib/module/components/Meeting.js +3 -14
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +50 -50
- package/lib/module/components/MeetingScreenContent.js.map +1 -1
- package/lib/module/components/MiniView.js +12 -13
- package/lib/module/components/MiniView.js.map +1 -1
- package/lib/module/components/OverlayedViews.js +6 -2
- package/lib/module/components/OverlayedViews.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsGroupHeader.js +1 -0
- package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/module/components/PeerSettingsModalContent.js +2 -1
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +0 -1
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +2 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/VideoView.js +0 -1
- package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/module/components/PressableIcon.js +6 -2
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/components/Preview.js +2 -1
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +26 -10
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +2 -2
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/module/components/TilesContainer.js +3 -3
- package/lib/module/components/TilesContainer.js.map +1 -1
- package/lib/module/components/WebrtcView.js +37 -2
- package/lib/module/components/WebrtcView.js.map +1 -1
- package/lib/module/hooks-util-selectors.js +2 -1
- package/lib/module/hooks-util-selectors.js.map +1 -1
- package/lib/module/hooks-util.js +78 -32
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/redux/actionTypes.js +3 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +6 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +9 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/utils/theme.js +0 -1
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/module/utils/types.js +2 -2
- package/lib/module/utils/types.js.map +1 -1
- package/lib/module/utils.js +0 -1
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/Recording/index.d.ts +1 -1
- package/lib/typescript/Icons/Recording/index.d.ts.map +1 -1
- package/lib/typescript/components/AnimatedFooter.d.ts.map +1 -1
- package/lib/typescript/components/AnimatedHLSFooter.d.ts.map +1 -1
- package/lib/typescript/components/AnimatedHeader.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet.d.ts +2 -0
- package/lib/typescript/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatBanner.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatFilterBottomSheetView.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts.map +1 -1
- package/lib/typescript/components/DefaultModal.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModal.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -1
- package/lib/typescript/components/Footer.d.ts +1 -1
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/GridView.d.ts.map +1 -1
- package/lib/typescript/components/HLSView.d.ts.map +1 -1
- package/lib/typescript/components/HMSHLSMessageList.d.ts.map +1 -1
- package/lib/typescript/components/HMSKeyboardAvoidingView.android.d.ts +9 -0
- package/lib/typescript/components/HMSKeyboardAvoidingView.android.d.ts.map +1 -0
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts +2 -1
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -1
- package/lib/typescript/components/HMSLiveIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSLiveViewerCount.d.ts +3 -0
- package/lib/typescript/components/HMSLiveViewerCount.d.ts.map +1 -0
- package/lib/typescript/components/HMSNotifications.d.ts.map +1 -1
- package/lib/typescript/components/HMSOverlayChatView.d.ts +5 -1
- package/lib/typescript/components/HMSOverlayChatView.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewEditName.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -1
- package/lib/typescript/components/HMSTextInput.d.ts.map +1 -1
- package/lib/typescript/components/Header.d.ts +1 -0
- package/lib/typescript/components/Header.d.ts.map +1 -1
- package/lib/typescript/components/LeaveRoomBottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/Meeting.d.ts.map +1 -1
- package/lib/typescript/components/MeetingScreenContent.d.ts.map +1 -1
- package/lib/typescript/components/MiniView.d.ts +2 -3
- package/lib/typescript/components/MiniView.d.ts.map +1 -1
- package/lib/typescript/components/OverlayedViews.d.ts +4 -1
- package/lib/typescript/components/OverlayedViews.d.ts.map +1 -1
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -1
- package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -1
- package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
- package/lib/typescript/components/WebrtcView.d.ts +2 -0
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -1
- package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +5 -0
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +1 -0
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +6 -0
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +1 -0
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +1 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +1 -0
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +1 -0
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/package.json +179 -179
- package/src/HMSRoomSetup.tsx +4 -1
- package/src/Icons/Recording/assets/recording-pause.png +0 -0
- package/src/Icons/Recording/assets/recording-pause@2x.png +0 -0
- package/src/Icons/Recording/assets/recording-pause@3x.png +0 -0
- package/src/Icons/Recording/index.tsx +3 -1
- package/src/components/AnimatedFooter.tsx +9 -3
- package/src/components/AnimatedHLSFooter.tsx +8 -17
- package/src/components/AnimatedHeader.tsx +16 -5
- package/src/components/BottomSheet.tsx +52 -9
- package/src/components/Chat/ChatBanner.tsx +9 -0
- package/src/components/Chat/ChatFilterBottomSheetView.tsx +8 -1
- package/src/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.tsx +17 -7
- package/src/components/ChatAndParticipants/ChatAndParticipantsView.tsx +5 -4
- package/src/components/DefaultModal.tsx +12 -1
- package/src/components/DisplayView.tsx +4 -13
- package/src/components/EndRoomModal.tsx +0 -1
- package/src/components/EndRoomModalContent.tsx +2 -1
- package/src/components/Footer.tsx +19 -10
- package/src/components/GridView.tsx +54 -15
- package/src/components/HLSFooter.tsx +1 -1
- package/src/components/HLSView.tsx +2 -1
- package/src/components/HMSHLSMessageList.tsx +8 -2
- package/src/components/HMSKeyboardAvoidingView.android.tsx +45 -0
- package/src/components/HMSKeyboardAvoidingView.tsx +6 -3
- package/src/components/HMSLiveIndicator.tsx +8 -73
- package/src/components/HMSLiveViewerCount.tsx +90 -0
- package/src/components/HMSNotifications.tsx +11 -1
- package/src/components/HMSOverlayChatView.tsx +18 -2
- package/src/components/HMSPreviewEditName.tsx +10 -1
- package/src/components/HMSPreviewHLSLiveIndicator.tsx +2 -1
- package/src/components/HMSRecordingIndicator.tsx +28 -2
- package/src/components/HMSRoomOptions.tsx +0 -3
- package/src/components/HMSTextInput.tsx +1 -0
- package/src/components/Header.tsx +14 -3
- package/src/components/LeaveRoomBottomSheet.tsx +3 -6
- package/src/components/Meeting.tsx +2 -19
- package/src/components/MeetingScreenContent.tsx +67 -62
- package/src/components/MiniView.tsx +18 -15
- package/src/components/OverlayedViews.tsx +6 -3
- package/src/components/PeerSettingsModalContent.tsx +2 -1
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +2 -1
- package/src/components/PressableIcon.tsx +22 -17
- package/src/components/Preview.tsx +2 -2
- package/src/components/RoomSettingsModalContent.tsx +22 -6
- package/src/components/RoomSettingsModalDebugModeContent.tsx +2 -1
- package/src/components/TilesContainer.tsx +9 -5
- package/src/components/WebrtcView.tsx +59 -22
- package/src/hooks-util-selectors.tsx +2 -1
- package/src/hooks-util.ts +86 -43
- package/src/redux/actionTypes.ts +3 -0
- package/src/redux/actions/index.ts +5 -0
- package/src/redux/reducers/appState.ts +8 -0
- package/src/utils/types.ts +12 -3
|
@@ -1,33 +1,37 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
|
-
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
4
3
|
import { BottomSheet } from '../BottomSheet';
|
|
5
|
-
import { useShowChatAndParticipants } from '../../hooks-util';
|
|
4
|
+
import { useHMSRoomStyleSheet, useShowChatAndParticipants } from '../../hooks-util';
|
|
6
5
|
import { ChatAndParticipantsView } from './ChatAndParticipantsView';
|
|
7
|
-
import {
|
|
6
|
+
import { useHeaderHeight } from '../Header';
|
|
7
|
+
import { useIsLandscapeOrientation } from '../../utils/dimension';
|
|
8
8
|
export const ChatAndParticipantsBottomSheet = () => {
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
} = useSafeAreaInsets();
|
|
9
|
+
const headerHeight = useHeaderHeight();
|
|
10
|
+
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
12
11
|
const {
|
|
13
12
|
modalVisible,
|
|
14
13
|
hide
|
|
15
14
|
} = useShowChatAndParticipants();
|
|
15
|
+
const hmsRoomStyles = useHMSRoomStyleSheet(theme => ({
|
|
16
|
+
contentContainer: {
|
|
17
|
+
backgroundColor: theme.palette.surface_dim
|
|
18
|
+
}
|
|
19
|
+
}));
|
|
16
20
|
const closeChatWindow = () => hide('modal');
|
|
17
21
|
return /*#__PURE__*/React.createElement(BottomSheet, {
|
|
22
|
+
fullWidth: true,
|
|
18
23
|
dismissModal: closeChatWindow,
|
|
19
24
|
isVisible: modalVisible,
|
|
20
25
|
avoidKeyboard: true,
|
|
21
|
-
containerStyle: [styles.bottomSheet, {
|
|
22
|
-
marginTop:
|
|
23
|
-
}]
|
|
26
|
+
containerStyle: [styles.bottomSheet, hmsRoomStyles.contentContainer, {
|
|
27
|
+
marginTop: isLandscapeOrientation ? 0 : headerHeight
|
|
28
|
+
}],
|
|
29
|
+
bottomOffsetSpace: 0
|
|
24
30
|
}, /*#__PURE__*/React.createElement(ChatAndParticipantsView, null));
|
|
25
31
|
};
|
|
26
32
|
const styles = StyleSheet.create({
|
|
27
33
|
bottomSheet: {
|
|
28
|
-
flex: 1
|
|
29
|
-
backgroundColor: undefined,
|
|
30
|
-
paddingBottom: 0
|
|
34
|
+
flex: 1
|
|
31
35
|
}
|
|
32
36
|
});
|
|
33
37
|
//# sourceMappingURL=ChatAndParticipantsBottomSheet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","BottomSheet","useHMSRoomStyleSheet","useShowChatAndParticipants","ChatAndParticipantsView","useHeaderHeight","useIsLandscapeOrientation","ChatAndParticipantsBottomSheet","headerHeight","isLandscapeOrientation","modalVisible","hide","hmsRoomStyles","theme","contentContainer","backgroundColor","palette","surface_dim","closeChatWindow","createElement","fullWidth","dismissModal","isVisible","avoidKeyboard","containerStyle","styles","bottomSheet","marginTop","bottomOffsetSpace","create","flex"],"sourceRoot":"../../../../src","sources":["components/ChatAndParticipants/ChatAndParticipantsBottomSheet.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,QAAQ,cAAc;AAEzC,SA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et, View } from 'react-native';
|
|
3
|
+
import { Platform, StyleSheet, View } from 'react-native';
|
|
4
|
+
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
4
5
|
import { useHMSRoomStyleSheet, useShowChatAndParticipants } from '../../hooks-util';
|
|
5
6
|
import { ChatAndParticipantsHeader } from './ChatAndParticipantsHeader';
|
|
6
7
|
import { ChatFilterBottomSheetView } from '../Chat/ChatFilterBottomSheetView';
|
|
@@ -22,8 +23,9 @@ const _ChatAndParticipantsView = () => {
|
|
|
22
23
|
}));
|
|
23
24
|
const showParticipants = activeChatBottomSheetTab === 'Participants' && canShowParticipants;
|
|
24
25
|
const showChat = activeChatBottomSheetTab === 'Chat' && canShowChat && !overlayChatLayout;
|
|
25
|
-
return /*#__PURE__*/React.createElement(
|
|
26
|
-
style: styles.container
|
|
26
|
+
return /*#__PURE__*/React.createElement(SafeAreaView, {
|
|
27
|
+
style: styles.container,
|
|
28
|
+
edges: ['left', 'right']
|
|
27
29
|
}, /*#__PURE__*/React.createElement(View, {
|
|
28
30
|
style: [styles.contentContainer, hmsRoomStyles.contentContainer, showParticipants ? styles.participantsContainer : null]
|
|
29
31
|
}, /*#__PURE__*/React.createElement(ChatAndParticipantsHeader, {
|
|
@@ -41,7 +43,7 @@ const styles = StyleSheet.create({
|
|
|
41
43
|
flex: 1,
|
|
42
44
|
paddingHorizontal: 16,
|
|
43
45
|
paddingTop: 12,
|
|
44
|
-
paddingBottom: 32,
|
|
46
|
+
paddingBottom: Platform.OS === 'ios' ? 32 : 0,
|
|
45
47
|
borderTopLeftRadius: 16,
|
|
46
48
|
borderTopRightRadius: 16
|
|
47
49
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useSelector","StyleSheet","View","useHMSRoomStyleSheet","useShowChatAndParticipants","ChatAndParticipantsHeader","ChatFilterBottomSheetView","ParticipantsView","ChatView","_ChatAndParticipantsView","activeChatBottomSheetTab","state","app","hide","canShowParticipants","canShowChat","overlayChatLayout","closeBottomSheet","hmsRoomStyles","theme","contentContainer","backgroundColor","palette","surface_dim","showParticipants","showChat","createElement","style","styles","container","participantsContainer","onClosePress","participantsWrapper","create","flex","position","paddingHorizontal","paddingTop","paddingBottom","borderTopLeftRadius","borderTopRightRadius","marginTop","ChatAndParticipantsView","memo"],"sourceRoot":"../../../../src","sources":["components/ChatAndParticipants/ChatAndParticipantsView.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;
|
|
1
|
+
{"version":3,"names":["React","useSelector","Platform","StyleSheet","View","SafeAreaView","useHMSRoomStyleSheet","useShowChatAndParticipants","ChatAndParticipantsHeader","ChatFilterBottomSheetView","ParticipantsView","ChatView","_ChatAndParticipantsView","activeChatBottomSheetTab","state","app","hide","canShowParticipants","canShowChat","overlayChatLayout","closeBottomSheet","hmsRoomStyles","theme","contentContainer","backgroundColor","palette","surface_dim","showParticipants","showChat","createElement","style","styles","container","edges","participantsContainer","onClosePress","participantsWrapper","create","flex","position","paddingHorizontal","paddingTop","paddingBottom","OS","borderTopLeftRadius","borderTopRightRadius","marginTop","ChatAndParticipantsView","memo"],"sourceRoot":"../../../../src","sources":["components/ChatAndParticipants/ChatAndParticipantsView.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACzD,SAASC,YAAY,QAAQ,gCAAgC;AAE7D,SACEC,oBAAoB,EACpBC,0BAA0B,QACrB,kBAAkB;AACzB,SAASC,yBAAyB,QAAQ,6BAA6B;AACvE,SAASC,yBAAyB,QAAQ,mCAAmC;AAE7E,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,QAAQ,QAAQ,YAAY;AAErC,MAAMC,wBAAkC,GAAGA,CAAA,KAAM;EAC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,aAAA,CAACpB,yBAAyB,MAAE,CAChB,CAAC;AAEnB,CAAC;AAED,MAAMsB,MAAM,GAAG5B,UAAU,CAACkC,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE;EACZ,CAAC;EACDhB,gBAAgB,EAAE;IAChBe,IAAI,EAAE,CAAC;IACPE,iBAAiB,EAAE,EAAE;IACrBC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAExC,QAAQ,CAACyC,EAAE,KAAK,KAAK,GAAG,EAAE,GAAG,CAAC;IAC7CC,mBAAmB,EAAE,EAAE;IACvBC,oBAAoB,EAAE;EACxB,CAAC;EACDX,qBAAqB,EAAE;IACrBQ,aAAa,EAAE;EACjB,CAAC;EACDN,mBAAmB,EAAE;IACnBE,IAAI,EAAE,CAAC;IACPQ,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAEF,OAAO,MAAMC,uBAAuB,gBAAG/C,KAAK,CAACgD,IAAI,CAACpC,wBAAwB,CAAC"}
|
|
@@ -5,6 +5,7 @@ import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
|
5
5
|
import { COLORS } from '../utils/theme';
|
|
6
6
|
import { CustomButton } from './CustomButton';
|
|
7
7
|
import { CloseIcon } from '../Icons';
|
|
8
|
+
import { useIsLandscapeOrientation } from '../utils/dimension';
|
|
8
9
|
export const DefaultModal = ({
|
|
9
10
|
modalVisible,
|
|
10
11
|
setModalVisible,
|
|
@@ -20,6 +21,7 @@ export const DefaultModal = ({
|
|
|
20
21
|
left,
|
|
21
22
|
right
|
|
22
23
|
} = useSafeAreaInsets();
|
|
24
|
+
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
23
25
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
24
26
|
useNativeDriver: true,
|
|
25
27
|
useNativeDriverForBackdrop: true,
|
|
@@ -39,7 +41,7 @@ export const DefaultModal = ({
|
|
|
39
41
|
justifyContent: modalPosiion
|
|
40
42
|
}]
|
|
41
43
|
}, /*#__PURE__*/React.createElement(View, {
|
|
42
|
-
style: [styles.contentContainer, modalPosiion === 'flex-end' ? styles.end : styles.center, viewStyle, {
|
|
44
|
+
style: [isLandscapeOrientation ? styles.landscapeContentContainer : styles.contentContainer, modalPosiion === 'flex-end' ? styles.end : styles.center, viewStyle, {
|
|
43
45
|
marginLeft: left,
|
|
44
46
|
marginRight: right
|
|
45
47
|
}]
|
|
@@ -55,6 +57,12 @@ const styles = StyleSheet.create({
|
|
|
55
57
|
// minHeight: '20%',
|
|
56
58
|
backgroundColor: COLORS.SURFACE.DEFAULT
|
|
57
59
|
},
|
|
60
|
+
landscapeContentContainer: {
|
|
61
|
+
maxHeight: '80%',
|
|
62
|
+
maxWidth: '60%',
|
|
63
|
+
// minHeight: '20%',
|
|
64
|
+
backgroundColor: COLORS.SURFACE.DEFAULT
|
|
65
|
+
},
|
|
58
66
|
end: {
|
|
59
67
|
flex: 1,
|
|
60
68
|
borderTopLeftRadius: 16,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","Modal","useSafeAreaInsets","COLORS","CustomButton","CloseIcon","DefaultModal","modalVisible","setModalVisible","children","animationIn","animationOut","modalPosiion","backdrop","viewStyle","modalStyle","left","right","createElement","useNativeDriver","useNativeDriverForBackdrop","hideModalContentWhileAnimating","avoidKeyboard","isVisible","coverScreen","hasBackdrop","supportedOrientations","onBackdropPress","onDismiss","onBackButtonPress","style","margin","justifyContent","styles","contentContainer","end","center","marginLeft","marginRight","onPress","crossButton","LeftIcon","create","maxHeight","backgroundColor","SURFACE","DEFAULT","flex","borderTopLeftRadius","borderTopRightRadius","padding","borderWidth","borderColor","BORDER","LIGHT","borderBottomWidth","borderRadius","marginHorizontal","alignSelf","width","height","position","top","alignItems","zIndex","crossButtonIcon","color","TEXT","HIGH_EMPHASIS"],"sourceRoot":"../../../src","sources":["components/DefaultModal.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,OAAOC,KAAK,MAAM,oBAAoB;AAEtC,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,SAAS,QAAQ,UAAU;
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","Modal","useSafeAreaInsets","COLORS","CustomButton","CloseIcon","useIsLandscapeOrientation","DefaultModal","modalVisible","setModalVisible","children","animationIn","animationOut","modalPosiion","backdrop","viewStyle","modalStyle","left","right","isLandscapeOrientation","createElement","useNativeDriver","useNativeDriverForBackdrop","hideModalContentWhileAnimating","avoidKeyboard","isVisible","coverScreen","hasBackdrop","supportedOrientations","onBackdropPress","onDismiss","onBackButtonPress","style","margin","justifyContent","styles","landscapeContentContainer","contentContainer","end","center","marginLeft","marginRight","onPress","crossButton","LeftIcon","create","maxHeight","backgroundColor","SURFACE","DEFAULT","maxWidth","flex","borderTopLeftRadius","borderTopRightRadius","padding","borderWidth","borderColor","BORDER","LIGHT","borderBottomWidth","borderRadius","marginHorizontal","alignSelf","width","height","position","top","alignItems","zIndex","crossButtonIcon","color","TEXT","HIGH_EMPHASIS"],"sourceRoot":"../../../src","sources":["components/DefaultModal.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAE/C,OAAOC,KAAK,MAAM,oBAAoB;AAEtC,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,SAASC,MAAM,QAAQ,gBAAgB;AACvC,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,SAAS,QAAQ,UAAU;AACpC,SAASC,yBAAyB,QAAQ,oBAAoB;AAa9D,OAAO,MAAMC,YAAyC,GAAGA,CAAC;EACxDC,YAAY;EACZC,eAAe;EACfC,QAAQ;EACRC,WAAW,GAAG,QAAQ;EACtBC,YAAY,GAAG,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;EACrB;AACF,CAAC,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { useRef, useState } from 'react';
|
|
2
2
|
import { useSelector } from 'react-redux';
|
|
3
|
-
import { InteractionManager } from 'react-native';
|
|
3
|
+
import { InteractionManager, View } from 'react-native';
|
|
4
4
|
import { HMSCameraControl } from '@100mslive/react-native-hms';
|
|
5
|
-
import Animated, { interpolate, useAnimatedStyle } from 'react-native-reanimated';
|
|
6
5
|
import { DefaultModal } from './DefaultModal';
|
|
7
6
|
import { ModalTypes, PipModes } from '../utils/types';
|
|
8
7
|
import { requestExternalStoragePermission } from '../utils/functions';
|
|
@@ -82,19 +81,13 @@ export const DisplayView = ({
|
|
|
82
81
|
trackToChangeRef.current = track;
|
|
83
82
|
setModalVisible(ModalTypes.STREAMING_QUALITY_SETTING, true);
|
|
84
83
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
transform: [{
|
|
88
|
-
translateY: interpolate(offset.value, [0, 1], [4, 0])
|
|
89
|
-
}]
|
|
90
|
-
};
|
|
91
|
-
}, []);
|
|
92
|
-
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
93
|
-
style: [{
|
|
84
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
85
|
+
style: {
|
|
94
86
|
flex: 1
|
|
95
|
-
}
|
|
87
|
+
}
|
|
96
88
|
}, isHLSViewer ? /*#__PURE__*/React.createElement(HLSView, null) : /*#__PURE__*/React.createElement(WebrtcView, {
|
|
97
89
|
ref: gridViewRef,
|
|
90
|
+
offset: offset,
|
|
98
91
|
peerTrackNodes: peerTrackNodes,
|
|
99
92
|
handlePeerTileMorePress: handlePeerTileMorePress
|
|
100
93
|
}), isPipModeActive ? null : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LeaveRoomBottomSheet, null), /*#__PURE__*/React.createElement(EndRoomModal, null), /*#__PURE__*/React.createElement(PreviewForRoleChangeModal, null), /*#__PURE__*/React.createElement(FullScreenVideoView, null), /*#__PURE__*/React.createElement(ChatAndParticipantsBottomSheet, null), /*#__PURE__*/React.createElement(BottomSheet, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useRef","useState","useSelector","InteractionManager","
|
|
1
|
+
{"version":3,"names":["React","useRef","useState","useSelector","InteractionManager","View","HMSCameraControl","DefaultModal","ModalTypes","PipModes","requestExternalStoragePermission","ChangeAspectRatio","ChangeRoleModal","ChangeTrackStateModal","SaveScreenshot","HLSView","PeerSettingsModalContent","StreamingQualityModalContent","useHMSChangeTrackStateRequest","useHMSInstance","useHMSRoleChangeRequest","useHMSSessionStoreListeners","useIsHLSViewer","useModalType","WebrtcView","BottomSheet","FullScreenVideoView","PreviewForRoleChangeModal","ChatAndParticipantsBottomSheet","LeaveRoomBottomSheet","EndRoomModal","DisplayView","offset","peerTrackNodes","hmsInstance","isHLSViewer","modalVisibleType","modalVisible","handleModalVisibleType","setModalVisible","gridViewRef","trackToChangeRef","isPipModeActive","state","app","pipModeStatus","ACTIVE","selectedPeerTrackNode","setSelectedPeerTrackNode","capturedImagePath","setCapturedImagePath","trackStateChangeRequest","CHANGE_TRACK","handlePeerTileMorePress","useCallback","peerTrackNode","PEER_SETTINGS","handleCaptureScreenShotPress","node","DEFAULT","runAfterInteractions","_gridViewRef$current","current","captureViewScreenshot","handleCaptureImageAtMaxSupportedResolutionPress","_node","permission","captureImageAtMaxSupportedResolution","then","imagePath","console","log","uri","catch","error","warn","handleStreamingQualityPress","track","STREAMING_QUALITY_SETTING","createElement","style","flex","ref","Fragment","isVisible","dismissModal","peerTrackNodesListEmpty","length","cancelModal","onCaptureScreenShotPress","onCaptureImageAtMaxSupportedResolutionPress","onStreamingQualityPress","modalPosiion","HLS_PLAYER_ASPECT_RATIO","imageSource","roleChangeRequest","CHANGE_ROLE"],"sourceRoot":"../../../src","sources":["components/DisplayView.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;A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handleModalVisibleType(ModalTypes.DEFAULT);
|
|
12
12
|
return /*#__PURE__*/React.createElement(BottomSheet, {
|
|
13
13
|
dismissModal: dismissModal,
|
|
14
|
-
isVisible: modalVisibleType === ModalTypes.END_ROOM
|
|
15
|
-
animationOutTiming: 700
|
|
14
|
+
isVisible: modalVisibleType === ModalTypes.END_ROOM
|
|
16
15
|
}, /*#__PURE__*/React.createElement(EndRoomModalContent, {
|
|
17
16
|
dismissModal: dismissModal
|
|
18
17
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","ModalTypes","BottomSheet","useModalType","EndRoomModalContent","EndRoomModal","modalVisibleType","handleModalVisibleType","dismissModal","DEFAULT","createElement","isVisible","END_ROOM"
|
|
1
|
+
{"version":3,"names":["React","ModalTypes","BottomSheet","useModalType","EndRoomModalContent","EndRoomModal","modalVisibleType","handleModalVisibleType","dismissModal","DEFAULT","createElement","isVisible","END_ROOM"],"sourceRoot":"../../../src","sources":["components/EndRoomModal.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,SAASC,UAAU,QAAQ,gBAAgB;AAC3C,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,YAAY,QAAQ,eAAe;AAC5C,SAASC,mBAAmB,QAAQ,uBAAuB;AAI3D,OAAO,MAAMC,YAAyC,GAAGA,CAAA,KAAM;EAC7D,MAAM;IAAEC,gBAAgB;IAAEC;EAAuB,CAAC,GAAGJ,YAAY,CAAC,CAAC;EAEnE,MAAMK,YAAY,GAAGA,CAAA,KAAMD,sBAAsB,CAACN,UAAU,CAACQ,OAAO,CAAC;EAErE,oBACET,KAAA,CAAAU,aAAA,CAACR,WAAW;IACVM,YAAY,EAAEA,YAAa;IAC3BG,SAAS,EAAEL,gBAAgB,KAAKL,UAAU,CAACW;EAAS,gBAEpDZ,KAAA,CAAAU,aAAA,CAACN,mBAAmB;IAACI,YAAY,EAAEA;EAAa,CAAE,CACvC,CAAC;AAElB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useSelector } from 'react-redux';
|
|
3
3
|
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
|
|
4
|
+
import { HMSStreamingState } from '@100mslive/react-native-hms';
|
|
4
5
|
import { useHMSRoomStyleSheet, useLeaveMethods } from '../hooks-util';
|
|
5
6
|
import { AlertTriangleIcon, CloseIcon } from '../Icons';
|
|
6
7
|
import { HMSDangerButton } from './HMSDangerButton';
|
|
@@ -33,7 +34,7 @@ export const EndRoomModalContent = ({
|
|
|
33
34
|
});
|
|
34
35
|
const isStreaming = useSelector(state => {
|
|
35
36
|
var _state$hmsStates$room;
|
|
36
|
-
return ((_state$hmsStates$room = state.hmsStates.room) === null || _state$hmsStates$room === void 0 || (_state$hmsStates$room = _state$hmsStates$room.hlsStreamingState) === null || _state$hmsStates$room === void 0 ? void 0 : _state$hmsStates$room.
|
|
37
|
+
return ((_state$hmsStates$room = state.hmsStates.room) === null || _state$hmsStates$room === void 0 || (_state$hmsStates$room = _state$hmsStates$room.hlsStreamingState) === null || _state$hmsStates$room === void 0 ? void 0 : _state$hmsStates$room.state) === HMSStreamingState.STARTED ?? false;
|
|
37
38
|
});
|
|
38
39
|
return /*#__PURE__*/React.createElement(View, {
|
|
39
40
|
style: styles.container
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useSelector","View","Text","StyleSheet","TouchableOpacity","useHMSRoomStyleSheet","useLeaveMethods","AlertTriangleIcon","CloseIcon","HMSDangerButton","OnLeaveReason","TestIds","EndRoomModalContent","dismissModal","endRoom","leave","hmsRoomStyles","theme","typography","headerText","color","palette","alert_error_default","fontFamily","font_family","text","on_surface_medium","canEndRoom","state","_state$hmsStates$loca","hmsStates","localPeer","role","permissions","canStream","_state$hmsStates$loca2","hlsStreaming","isStreaming","_state$hmsStates$room","room","hlsStreamingState","
|
|
1
|
+
{"version":3,"names":["React","useSelector","View","Text","StyleSheet","TouchableOpacity","HMSStreamingState","useHMSRoomStyleSheet","useLeaveMethods","AlertTriangleIcon","CloseIcon","HMSDangerButton","OnLeaveReason","TestIds","EndRoomModalContent","dismissModal","endRoom","leave","hmsRoomStyles","theme","typography","headerText","color","palette","alert_error_default","fontFamily","font_family","text","on_surface_medium","canEndRoom","state","_state$hmsStates$loca","hmsStates","localPeer","role","permissions","canStream","_state$hmsStates$loca2","hlsStreaming","isStreaming","_state$hmsStates$room","room","hlsStreamingState","STARTED","createElement","style","styles","container","header","headerControls","testID","end_confirmation_heading","end_confirmation_close_btn","onPress","hitSlop","closeIconHitSlop","end_confirmation_description","end_confirmation_cta","loading","LEAVE","ROOM_END","title","create","marginTop","marginHorizontal","flexDirection","alignItems","justifyContent","marginBottom","fontSize","lineHeight","letterSpacing","marginLeft","bottom","left","right","top"],"sourceRoot":"../../../src","sources":["components/EndRoomModalContent.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AACvE,SAASC,iBAAiB,QAAQ,6BAA6B;AAE/D,SAASC,oBAAoB,EAAEC,eAAe,QAAQ,eAAe;AACrE,SAASC,iBAAiB,EAAEC,SAAS,QAAQ,UAAU;AACvD,SAASC,eAAe,QAAQ,mBAAmB;AAEnD,SAASC,aAAa,QAAQ,gBAAgB;AAC9C,SAASC,OAAO,QAAQ,oBAAoB;AAM5C,OAAO,MAAMC,mBAAuD,GAAGA,CAAC;EACtEC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC,OAAO;IAAEC;EAAM,CAAC,GAAGT,eAAe,CAAC,CAAC;EAE5C,MAAMU,aAAa,GAAGX,oBAAoB,CAAC,CAACY,KAAK,EAAEC,UAAU,MAAM;IACjEC,UAAU,EAAE;MACVC,KAAK,EAAEH,KAAK,CAACI,OAAO,CAACC,mBAAmB;MACxCC,UA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;IACFC,KAAK,EAAEzB,SAAS,IAAIG,WAAW,GAAG,YAAY,GAAG;EAAc,CAChE,CACG,CAAC;AAEX,CAAC;AAED,MAAMO,MAAM,GAAG1C,UAAU,CAAC0D,MAAM,CAAC;EAC/Bf,SAAS,EAAE;IACTgB,SAAS,EAAE,EAAE;IACbC,gBAAgB,EAAE;EACpB,CAAC;EACDhB,MAAM,EAAE;IACNiB,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,YAAY,EAAE;EAChB,CAAC;EACDnB,cAAc,EAAE;IACdgB,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd,CAAC;EACD7C,UAAU,EAAE;IACVgD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,IAAI;IACnBC,UAAU,EAAE;EACd,CAAC;EACDjB,gBAAgB,EAAE;IAChBkB,MAAM,EAAE,EAAE;IACVC,IAAI,EAAE,EAAE;IACRC,KAAK,EAAE,EAAE;IACTC,GAAG,EAAE;EACP,CAAC;EACDjD,IAAI,EAAE;IACJ0C,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,IAAI;IACnBH,YAAY,EAAE;EAChB;AACF,CAAC,CAAC"}
|
|
@@ -15,6 +15,7 @@ export const _Footer = () => {
|
|
|
15
15
|
const canPublishAudio = useCanPublishAudio();
|
|
16
16
|
const canPublishVideo = useCanPublishVideo();
|
|
17
17
|
const canPublishScreen = useCanPublishScreen();
|
|
18
|
+
const editUsernameDisabled = useSelector(state => state.app.editUsernameDisabled);
|
|
18
19
|
const isViewer = !(canPublishAudio || canPublishVideo || canPublishScreen);
|
|
19
20
|
const {
|
|
20
21
|
canShowParticipants,
|
|
@@ -32,13 +33,17 @@ export const _Footer = () => {
|
|
|
32
33
|
var _state$hmsStates$loca;
|
|
33
34
|
return !!((_state$hmsStates$loca = state.hmsStates.localPeer) !== null && _state$hmsStates$loca !== void 0 && (_state$hmsStates$loca = _state$hmsStates$loca.role) !== null && _state$hmsStates$loca !== void 0 && (_state$hmsStates$loca = _state$hmsStates$loca.permissions) !== null && _state$hmsStates$loca !== void 0 && _state$hmsStates$loca.browserRecording);
|
|
34
35
|
});
|
|
35
|
-
const
|
|
36
|
+
const canEditUsernameFromRoomModal = isViewer && !editUsernameDisabled;
|
|
37
|
+
const canShowHandRaiseInFooter = !isOnStage && isViewer; // on_stage_exp object undefined && viewer -> show in footer
|
|
38
|
+
const canShowHandRaiseInRoomModal = !isOnStage && !isViewer; // on_stage_exp object undefined && publisher -> show in room modal
|
|
39
|
+
|
|
40
|
+
const canShowOptions = canShowParticipants || canPublishScreen || canShowBRB || canShowHandRaiseInRoomModal || canStartRecording || canEditUsernameFromRoomModal;
|
|
36
41
|
const footerActionButtons = useMemo(() => {
|
|
37
42
|
const actions = [];
|
|
38
43
|
if (canShowChat) {
|
|
39
44
|
actions.push('chat');
|
|
40
45
|
}
|
|
41
|
-
if (
|
|
46
|
+
if (canShowHandRaiseInFooter) {
|
|
42
47
|
actions.unshift('hand-raise');
|
|
43
48
|
}
|
|
44
49
|
if (canPublishVideo) {
|
|
@@ -52,13 +57,13 @@ export const _Footer = () => {
|
|
|
52
57
|
actions.push('options');
|
|
53
58
|
}
|
|
54
59
|
return actions;
|
|
55
|
-
}, [
|
|
60
|
+
}, [canShowHandRaiseInFooter, canShowOptions, canShowChat, canPublishAudio, canPublishVideo]);
|
|
56
61
|
const containerStyles = useHMSRoomStyle(theme => ({
|
|
57
62
|
backgroundColor: theme.palette.background_dim
|
|
58
63
|
}));
|
|
59
64
|
return /*#__PURE__*/React.createElement(SafeAreaView, {
|
|
60
65
|
style: isHLSViewer ? null : containerStyles,
|
|
61
|
-
edges: ['bottom']
|
|
66
|
+
edges: ['bottom', 'left', 'right']
|
|
62
67
|
}, /*#__PURE__*/React.createElement(View, {
|
|
63
68
|
style: [styles.container, isHLSViewer ? styles.hlsContainer : containerStyles]
|
|
64
69
|
}, footerActionButtons.map((actionType, index) => {
|
|
@@ -68,14 +73,13 @@ export const _Footer = () => {
|
|
|
68
73
|
}, actionType === 'leave' ? /*#__PURE__*/React.createElement(HMSManageLeave, null) : actionType === 'audio' ? /*#__PURE__*/React.createElement(HMSManageLocalAudio, null) : actionType === 'video' ? /*#__PURE__*/React.createElement(HMSManageLocalVideo, null) : actionType === 'chat' ? /*#__PURE__*/React.createElement(HMSChat, null) : actionType === 'options' ? /*#__PURE__*/React.createElement(HMSRoomOptions, null) : actionType === 'hand-raise' ? /*#__PURE__*/React.createElement(HMSManageRaiseHand, null) : null);
|
|
69
74
|
})));
|
|
70
75
|
};
|
|
71
|
-
export const useFooterHeight = () => {
|
|
76
|
+
export const useFooterHeight = (excludeSafeArea = false) => {
|
|
72
77
|
const isHLSViewer = useIsHLSViewer();
|
|
73
78
|
const {
|
|
74
79
|
bottom
|
|
75
80
|
} = useSafeAreaInsets();
|
|
76
|
-
return bottom + (isHLSViewer ? 8 : 16) + (Platform.OS === 'android' ? 16 : 0) + 40; // bottomSafeArea + paddingTop + marginBottom + content
|
|
81
|
+
return (excludeSafeArea ? 0 : bottom) + (isHLSViewer ? 8 : 16) + (Platform.OS === 'android' ? 16 : 0) + 40; // bottomSafeArea + paddingTop + marginBottom + content
|
|
77
82
|
};
|
|
78
|
-
|
|
79
83
|
const styles = StyleSheet.create({
|
|
80
84
|
container: {
|
|
81
85
|
paddingTop: 16,
|
|
@@ -83,9 +87,8 @@ const styles = StyleSheet.create({
|
|
|
83
87
|
flexDirection: 'row',
|
|
84
88
|
alignItems: 'center',
|
|
85
89
|
justifyContent: 'center',
|
|
86
|
-
marginBottom: Platform.OS === 'android' ? 16 : 0 // TODO: need to correct hide
|
|
90
|
+
marginBottom: Platform.OS === 'android' ? 16 : 0 // TODO: need to correct hide animation offsets because of this change
|
|
87
91
|
},
|
|
88
|
-
|
|
89
92
|
hlsContainer: {
|
|
90
93
|
paddingTop: 8
|
|
91
94
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","useMemo","View","StyleSheet","Platform","SafeAreaView","useSafeAreaInsets","useHMSLayoutConfig","useHMSRoomStyle","useIsHLSViewer","useShowChatAndParticipants","HMSManageLeave","HMSManageRaiseHand","HMSManageLocalAudio","HMSManageLocalVideo","HMSChat","HMSRoomOptions","useCanPublishAudio","useCanPublishScreen","useCanPublishVideo","useSelector","_Footer","isHLSViewer","canPublishAudio","canPublishVideo","canPublishScreen","isViewer","canShowParticipants","canShowChat","canShowBRB","layoutConfig","_layoutConfig$screens","screens","conferencing","default","elements","brb","isOnStage","_layoutConfig$screens2","on_stage_exp","canStartRecording","
|
|
1
|
+
{"version":3,"names":["React","memo","useMemo","View","StyleSheet","Platform","SafeAreaView","useSafeAreaInsets","useHMSLayoutConfig","useHMSRoomStyle","useIsHLSViewer","useShowChatAndParticipants","HMSManageLeave","HMSManageRaiseHand","HMSManageLocalAudio","HMSManageLocalVideo","HMSChat","HMSRoomOptions","useCanPublishAudio","useCanPublishScreen","useCanPublishVideo","useSelector","_Footer","isHLSViewer","canPublishAudio","canPublishVideo","canPublishScreen","editUsernameDisabled","state","app","isViewer","canShowParticipants","canShowChat","canShowBRB","layoutConfig","_layoutConfig$screens","screens","conferencing","default","elements","brb","isOnStage","_layoutConfig$screens2","on_stage_exp","canStartRecording","_state$hmsStates$loca","hmsStates","localPeer","role","permissions","browserRecording","canEditUsernameFromRoomModal","canShowHandRaiseInFooter","canShowHandRaiseInRoomModal","canShowOptions","footerActionButtons","actions","push","unshift","containerStyles","theme","backgroundColor","palette","background_dim","createElement","style","edges","styles","container","hlsContainer","map","actionType","index","key","iconWrapper","useFooterHeight","excludeSafeArea","bottom","OS","create","paddingTop","paddingHorizontal","flexDirection","alignItems","justifyContent","marginBottom","marginLeft","Footer"],"sourceRoot":"../../../src","sources":["components/Footer.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,OAAO,QAAQ,OAAO;A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AAC;EACDT,YAAY,EAAE;IACZW,UAAU,EAAE;EACd,CAAC;EACDN,WAAW,EAAE;IACXY,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,OAAO,MAAMC,MAAM,gBAAGtF,IAAI,CAACqB,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useRef, useState, useImperativeHandle } from 'react';
|
|
2
|
-
import { View, FlatList, StyleSheet,
|
|
2
|
+
import { View, FlatList, StyleSheet, useWindowDimensions, Platform } from 'react-native';
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
4
|
import { DefaultModal } from './DefaultModal';
|
|
5
5
|
import { SaveScreenshot } from './Modals';
|
|
@@ -8,6 +8,8 @@ import { MiniView } from './MiniView';
|
|
|
8
8
|
import { PaginationDots } from './PaginationDots';
|
|
9
9
|
import { setGridViewActivePage } from '../redux/actions';
|
|
10
10
|
import { Tile } from './Tile';
|
|
11
|
+
import { useIsLandscapeOrientation } from '../utils/dimension';
|
|
12
|
+
import { useSafeAreaFrame } from 'react-native-safe-area-context';
|
|
11
13
|
const FLATLIST_VIEWABILITY_CONFIG = {
|
|
12
14
|
waitForInteraction: true,
|
|
13
15
|
itemVisiblePercentThreshold: 80
|
|
@@ -20,8 +22,35 @@ export const GridView = /*#__PURE__*/React.forwardRef(({
|
|
|
20
22
|
const hmsViewRefs = useRef({});
|
|
21
23
|
const regularTilesFlatlistRef = useRef(null);
|
|
22
24
|
const screenshareTilesFlatlistRef = useRef(null);
|
|
23
|
-
const
|
|
25
|
+
const [insetTileBoundingBox, setInsetTileBoundingBox] = useState({
|
|
26
|
+
width: null,
|
|
27
|
+
height: null
|
|
28
|
+
});
|
|
24
29
|
const screenshareTilesAvailable = useSelector(state => state.app.screensharePeerTrackNodes.length > 0);
|
|
30
|
+
const regularTilesAvailable = pairedPeers.length > 0;
|
|
31
|
+
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
32
|
+
|
|
33
|
+
// On Orientation change, scroll to first page of list
|
|
34
|
+
React.useEffect(() => {
|
|
35
|
+
if (screenshareTilesAvailable) {
|
|
36
|
+
var _screenshareTilesFlat;
|
|
37
|
+
(_screenshareTilesFlat = screenshareTilesFlatlistRef.current) === null || _screenshareTilesFlat === void 0 || _screenshareTilesFlat.scrollToOffset({
|
|
38
|
+
offset: 0,
|
|
39
|
+
animated: false
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}, [screenshareTilesAvailable, isLandscapeOrientation]);
|
|
43
|
+
|
|
44
|
+
// On Orientation change, scroll to first page of list
|
|
45
|
+
React.useEffect(() => {
|
|
46
|
+
if (regularTilesAvailable) {
|
|
47
|
+
var _regularTilesFlatlist;
|
|
48
|
+
(_regularTilesFlatlist = regularTilesFlatlistRef.current) === null || _regularTilesFlatlist === void 0 || _regularTilesFlatlist.scrollToOffset({
|
|
49
|
+
offset: 0,
|
|
50
|
+
animated: false
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}, [regularTilesAvailable, isLandscapeOrientation]);
|
|
25
54
|
const miniviewPeerTrackNodeExists = useSelector(state => !!state.app.miniviewPeerTrackNode);
|
|
26
55
|
|
|
27
56
|
// We are setting `captureViewScreenshot` method on ref passed to GridView component
|
|
@@ -63,7 +92,10 @@ export const GridView = /*#__PURE__*/React.forwardRef(({
|
|
|
63
92
|
const _handleLayoutChange = React.useCallback(({
|
|
64
93
|
nativeEvent
|
|
65
94
|
}) => {
|
|
66
|
-
|
|
95
|
+
setInsetTileBoundingBox({
|
|
96
|
+
width: nativeEvent.layout.width,
|
|
97
|
+
height: nativeEvent.layout.height
|
|
98
|
+
});
|
|
67
99
|
}, []);
|
|
68
100
|
return /*#__PURE__*/React.createElement(View, {
|
|
69
101
|
style: styles.container
|
|
@@ -74,13 +106,14 @@ export const GridView = /*#__PURE__*/React.forwardRef(({
|
|
|
74
106
|
ref: screenshareTilesFlatlistRef,
|
|
75
107
|
setHmsViewRefs: setHmsViewRefs,
|
|
76
108
|
onPeerTileMorePress: onPeerTileMorePress
|
|
77
|
-
}) : null, /*#__PURE__*/React.createElement(RegularTiles, {
|
|
109
|
+
}) : null, screenshareTilesAvailable && isLandscapeOrientation ? null : /*#__PURE__*/React.createElement(RegularTiles, {
|
|
78
110
|
ref: regularTilesFlatlistRef,
|
|
79
111
|
pairedPeers: pairedPeers,
|
|
80
112
|
setHmsViewRefs: setHmsViewRefs,
|
|
81
113
|
onPeerTileMorePress: onPeerTileMorePress
|
|
82
114
|
}), pairedPeers.length > 0 && miniviewPeerTrackNodeExists ? /*#__PURE__*/React.createElement(MiniView, {
|
|
83
|
-
|
|
115
|
+
boundingBoxWidth: insetTileBoundingBox.width,
|
|
116
|
+
boundingBoxHeight: insetTileBoundingBox.height,
|
|
84
117
|
onMoreOptionsPress: onPeerTileMorePress
|
|
85
118
|
}) : null, /*#__PURE__*/React.createElement(DefaultModal, {
|
|
86
119
|
modalPosiion: "center",
|
|
@@ -109,8 +142,12 @@ const RegularTiles = /*#__PURE__*/React.forwardRef(({
|
|
|
109
142
|
setHmsViewRefs
|
|
110
143
|
}, flatlistRef) => {
|
|
111
144
|
const dispatch = useDispatch();
|
|
145
|
+
const {
|
|
146
|
+
height: safeHeight
|
|
147
|
+
} = useSafeAreaFrame();
|
|
112
148
|
const screenshareTilesAvailable = useSelector(state => state.app.screensharePeerTrackNodes.length > 0);
|
|
113
149
|
const activeIndex = useSelector(state => state.app.gridViewActivePage);
|
|
150
|
+
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
114
151
|
const _keyExtractor = React.useCallback(item => {
|
|
115
152
|
var _item$;
|
|
116
153
|
return (_item$ = item[0]) === null || _item$ === void 0 ? void 0 : _item$.id;
|
|
@@ -137,6 +174,9 @@ const RegularTiles = /*#__PURE__*/React.forwardRef(({
|
|
|
137
174
|
}, /*#__PURE__*/React.createElement(FlatList, {
|
|
138
175
|
ref: flatlistRef,
|
|
139
176
|
horizontal: true,
|
|
177
|
+
style: Platform.OS === 'ios' ? {
|
|
178
|
+
maxHeight: safeHeight - 16
|
|
179
|
+
} : null,
|
|
140
180
|
data: pairedPeers,
|
|
141
181
|
initialNumToRender: 1,
|
|
142
182
|
maxToRenderPerBatch: 1,
|
|
@@ -151,8 +191,8 @@ const RegularTiles = /*#__PURE__*/React.forwardRef(({
|
|
|
151
191
|
}), pairedPeers.length > 1 ? /*#__PURE__*/React.createElement(PaginationDots, {
|
|
152
192
|
list: pairedPeers,
|
|
153
193
|
activeIndex: activeIndex,
|
|
154
|
-
style: screenshareTilesAvailable ? {
|
|
155
|
-
marginVertical: 8
|
|
194
|
+
style: screenshareTilesAvailable || isLandscapeOrientation ? {
|
|
195
|
+
marginVertical: isLandscapeOrientation ? 4 : 8
|
|
156
196
|
} : null
|
|
157
197
|
}) : null);
|
|
158
198
|
});
|
|
@@ -160,6 +200,10 @@ const ScreenshareTiles = /*#__PURE__*/React.forwardRef(({
|
|
|
160
200
|
onPeerTileMorePress,
|
|
161
201
|
setHmsViewRefs
|
|
162
202
|
}, flatlistRef) => {
|
|
203
|
+
const {
|
|
204
|
+
width
|
|
205
|
+
} = useWindowDimensions();
|
|
206
|
+
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
163
207
|
const [activePage, setActivePage] = useState(0);
|
|
164
208
|
const screensharePeerTrackNodes = useSelector(state => state.app.screensharePeerTrackNodes);
|
|
165
209
|
const _keyExtractor = React.useCallback(item => item.id, []);
|
|
@@ -174,12 +218,12 @@ const ScreenshareTiles = /*#__PURE__*/React.forwardRef(({
|
|
|
174
218
|
}) => {
|
|
175
219
|
return /*#__PURE__*/React.createElement(Tile, {
|
|
176
220
|
height: '100%',
|
|
177
|
-
width:
|
|
221
|
+
width: width,
|
|
178
222
|
peerTrackNode: item,
|
|
179
223
|
onPeerTileMorePress: onPeerTileMorePress,
|
|
180
224
|
setHmsViewRefs: setHmsViewRefs
|
|
181
225
|
});
|
|
182
|
-
}, [onPeerTileMorePress, setHmsViewRefs]);
|
|
226
|
+
}, [width, onPeerTileMorePress, setHmsViewRefs]);
|
|
183
227
|
return /*#__PURE__*/React.createElement(View, {
|
|
184
228
|
style: {
|
|
185
229
|
flex: 1,
|
|
@@ -203,7 +247,7 @@ const ScreenshareTiles = /*#__PURE__*/React.forwardRef(({
|
|
|
203
247
|
list: screensharePeerTrackNodes,
|
|
204
248
|
activeIndex: activePage,
|
|
205
249
|
style: {
|
|
206
|
-
marginVertical: 8
|
|
250
|
+
marginVertical: isLandscapeOrientation ? 4 : 8
|
|
207
251
|
}
|
|
208
252
|
}) : null);
|
|
209
253
|
});
|