@100mslive/react-native-room-kit 1.2.3 → 1.3.1

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.
Files changed (444) hide show
  1. package/README.md +15 -14
  2. package/lib/commonjs/HMSContainer.js +1 -2
  3. package/lib/commonjs/HMSContainer.js.map +1 -1
  4. package/lib/commonjs/HMSInstanceSetup.js +1 -2
  5. package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
  6. package/lib/commonjs/HMSPrebuilt.js +1 -2
  7. package/lib/commonjs/HMSPrebuilt.js.map +1 -1
  8. package/lib/commonjs/HMSRoomSetup.js +1 -2
  9. package/lib/commonjs/HMSRoomSetup.js.map +1 -1
  10. package/lib/commonjs/components/AnimatedFooter.js +1 -2
  11. package/lib/commonjs/components/AnimatedFooter.js.map +1 -1
  12. package/lib/commonjs/components/AnimatedHLSFooter.js +1 -2
  13. package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -1
  14. package/lib/commonjs/components/AnimatedHeader.js +1 -2
  15. package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
  16. package/lib/commonjs/components/AvatarView.js +1 -2
  17. package/lib/commonjs/components/AvatarView.js.map +1 -1
  18. package/lib/commonjs/components/BackButton.js +1 -2
  19. package/lib/commonjs/components/BackButton.js.map +1 -1
  20. package/lib/commonjs/components/BottomSheet.js +1 -2
  21. package/lib/commonjs/components/BottomSheet.js.map +1 -1
  22. package/lib/commonjs/components/CaptionsModalContent.js +1 -2
  23. package/lib/commonjs/components/CaptionsModalContent.js.map +1 -1
  24. package/lib/commonjs/components/ChangeNameModalContent.js +1 -2
  25. package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
  26. package/lib/commonjs/components/Chat/ChatFilterBottomSheet.js +1 -2
  27. package/lib/commonjs/components/Chat/ChatFilterBottomSheet.js.map +1 -1
  28. package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +1 -2
  29. package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
  30. package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +1 -2
  31. package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
  32. package/lib/commonjs/components/Chat/ChatFilterItem.js +1 -2
  33. package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -1
  34. package/lib/commonjs/components/Chat/ChatFilterView.js +1 -2
  35. package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -1
  36. package/lib/commonjs/components/Chat/ChatList.js +1 -2
  37. package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
  38. package/lib/commonjs/components/Chat/ChatMessage.js +1 -2
  39. package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
  40. package/lib/commonjs/components/Chat/ChatMoreActionsModal.js +1 -2
  41. package/lib/commonjs/components/Chat/ChatMoreActionsModal.js.map +1 -1
  42. package/lib/commonjs/components/Chat/ChatMoreActionsSheetView.js +1 -2
  43. package/lib/commonjs/components/Chat/ChatMoreActionsSheetView.js.map +1 -1
  44. package/lib/commonjs/components/Chat/ChatMoreActionsView.js +1 -2
  45. package/lib/commonjs/components/Chat/ChatMoreActionsView.js.map +1 -1
  46. package/lib/commonjs/components/Chat/ChatPaused.js +1 -2
  47. package/lib/commonjs/components/Chat/ChatPaused.js.map +1 -1
  48. package/lib/commonjs/components/Chat/MessageOptionsBottomSheet.js +1 -2
  49. package/lib/commonjs/components/Chat/MessageOptionsBottomSheet.js.map +1 -1
  50. package/lib/commonjs/components/Chat/MessageOptionsBottomSheetView.js +1 -2
  51. package/lib/commonjs/components/Chat/MessageOptionsBottomSheetView.js.map +1 -1
  52. package/lib/commonjs/components/Chat/MessageOptionsView.js +1 -2
  53. package/lib/commonjs/components/Chat/MessageOptionsView.js.map +1 -1
  54. package/lib/commonjs/components/Chat/PeerBlockedFromChat.js +1 -2
  55. package/lib/commonjs/components/Chat/PeerBlockedFromChat.js.map +1 -1
  56. package/lib/commonjs/components/Chat/PinnedMessages.js +1 -2
  57. package/lib/commonjs/components/Chat/PinnedMessages.js.map +1 -1
  58. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +1 -2
  59. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -1
  60. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +1 -2
  61. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
  62. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +1 -2
  63. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
  64. package/lib/commonjs/components/ChatAndParticipants/ChatView.js +1 -2
  65. package/lib/commonjs/components/ChatAndParticipants/ChatView.js.map +1 -1
  66. package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js +1 -2
  67. package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js.map +1 -1
  68. package/lib/commonjs/components/CreatePoll.js +1 -2
  69. package/lib/commonjs/components/CreatePoll.js.map +1 -1
  70. package/lib/commonjs/components/DefaultModal.js.map +1 -1
  71. package/lib/commonjs/components/DisplayView.js +1 -2
  72. package/lib/commonjs/components/DisplayView.js.map +1 -1
  73. package/lib/commonjs/components/EndRoomModal.js +1 -2
  74. package/lib/commonjs/components/EndRoomModal.js.map +1 -1
  75. package/lib/commonjs/components/EndRoomModalContent.js +1 -2
  76. package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
  77. package/lib/commonjs/components/Footer.js +1 -2
  78. package/lib/commonjs/components/Footer.js.map +1 -1
  79. package/lib/commonjs/components/FullScreenVideoView.js +1 -2
  80. package/lib/commonjs/components/FullScreenVideoView.js.map +1 -1
  81. package/lib/commonjs/components/FullScreenWhiteboard.js +1 -2
  82. package/lib/commonjs/components/FullScreenWhiteboard.js.map +1 -1
  83. package/lib/commonjs/components/GridView.js +2 -3
  84. package/lib/commonjs/components/GridView.js.map +1 -1
  85. package/lib/commonjs/components/HLSAnimatedDescriptionPane.js +1 -2
  86. package/lib/commonjs/components/HLSAnimatedDescriptionPane.js.map +1 -1
  87. package/lib/commonjs/components/HLSChatFooterView.js +1 -2
  88. package/lib/commonjs/components/HLSChatFooterView.js.map +1 -1
  89. package/lib/commonjs/components/HLSChatHeaderView.js +1 -2
  90. package/lib/commonjs/components/HLSChatHeaderView.js.map +1 -1
  91. package/lib/commonjs/components/HLSChatMessages.js +1 -2
  92. package/lib/commonjs/components/HLSChatMessages.js.map +1 -1
  93. package/lib/commonjs/components/HLSChatView.js +1 -2
  94. package/lib/commonjs/components/HLSChatView.js.map +1 -1
  95. package/lib/commonjs/components/HLSClosedCaptionControl.js +1 -2
  96. package/lib/commonjs/components/HLSClosedCaptionControl.js.map +1 -1
  97. package/lib/commonjs/components/HLSDescriptionPane.js +1 -2
  98. package/lib/commonjs/components/HLSDescriptionPane.js.map +1 -1
  99. package/lib/commonjs/components/HLSDescriptionPaneHeader.js +1 -2
  100. package/lib/commonjs/components/HLSDescriptionPaneHeader.js.map +1 -1
  101. package/lib/commonjs/components/HLSFooter.js +1 -2
  102. package/lib/commonjs/components/HLSFooter.js.map +1 -1
  103. package/lib/commonjs/components/HLSHandRaiseButton.js +1 -2
  104. package/lib/commonjs/components/HLSHandRaiseButton.js.map +1 -1
  105. package/lib/commonjs/components/HLSManageChatTextInput.js +1 -2
  106. package/lib/commonjs/components/HLSManageChatTextInput.js.map +1 -1
  107. package/lib/commonjs/components/HLSNotifications.js +1 -2
  108. package/lib/commonjs/components/HLSNotifications.js.map +1 -1
  109. package/lib/commonjs/components/HLSPlayPauseControl.js +1 -2
  110. package/lib/commonjs/components/HLSPlayPauseControl.js.map +1 -1
  111. package/lib/commonjs/components/HLSPlayerControls.js +1 -2
  112. package/lib/commonjs/components/HLSPlayerControls.js.map +1 -1
  113. package/lib/commonjs/components/HLSRecordingStatusText.js +1 -2
  114. package/lib/commonjs/components/HLSRecordingStatusText.js.map +1 -1
  115. package/lib/commonjs/components/HLSRoomOptionsButton.js +1 -2
  116. package/lib/commonjs/components/HLSRoomOptionsButton.js.map +1 -1
  117. package/lib/commonjs/components/HLSSeekbackwardControl.js +1 -2
  118. package/lib/commonjs/components/HLSSeekbackwardControl.js.map +1 -1
  119. package/lib/commonjs/components/HLSSeekbar.js +1 -2
  120. package/lib/commonjs/components/HLSSeekbar.js.map +1 -1
  121. package/lib/commonjs/components/HLSSeekforwardControl.js +1 -2
  122. package/lib/commonjs/components/HLSSeekforwardControl.js.map +1 -1
  123. package/lib/commonjs/components/HLSStreamStartedTime.js +1 -2
  124. package/lib/commonjs/components/HLSStreamStartedTime.js.map +1 -1
  125. package/lib/commonjs/components/HMSBaseButton.js +1 -2
  126. package/lib/commonjs/components/HMSBaseButton.js.map +1 -1
  127. package/lib/commonjs/components/HMSChat.js +1 -2
  128. package/lib/commonjs/components/HMSChat.js.map +1 -1
  129. package/lib/commonjs/components/HMSDangerButton.js +1 -2
  130. package/lib/commonjs/components/HMSDangerButton.js.map +1 -1
  131. package/lib/commonjs/components/HMSHLSMessage.js +1 -2
  132. package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
  133. package/lib/commonjs/components/HMSHLSMessageList.js +1 -2
  134. package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -1
  135. package/lib/commonjs/components/HMSHLSNotStarted.js +1 -2
  136. package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
  137. package/lib/commonjs/components/HMSHLSStreamLoading.js +1 -2
  138. package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
  139. package/lib/commonjs/components/HMSHandRaiseNotification.js +1 -2
  140. package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -1
  141. package/lib/commonjs/components/HMSKeyboardAvoidingView.android.js +1 -2
  142. package/lib/commonjs/components/HMSKeyboardAvoidingView.android.js.map +1 -1
  143. package/lib/commonjs/components/HMSKeyboardAvoidingView.js +1 -2
  144. package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
  145. package/lib/commonjs/components/HMSLiveIndicator.js +1 -2
  146. package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -1
  147. package/lib/commonjs/components/HMSLiveViewerCount.js +1 -2
  148. package/lib/commonjs/components/HMSLiveViewerCount.js.map +1 -1
  149. package/lib/commonjs/components/HMSLocalScreenshareNotification.js +1 -2
  150. package/lib/commonjs/components/HMSLocalScreenshareNotification.js.map +1 -1
  151. package/lib/commonjs/components/HMSLocalVideoView.js +1 -2
  152. package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -1
  153. package/lib/commonjs/components/HMSManageAudioOutput.js +1 -2
  154. package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
  155. package/lib/commonjs/components/HMSManageCameraRotation.js +1 -2
  156. package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
  157. package/lib/commonjs/components/HMSManageLeave.js +1 -2
  158. package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
  159. package/lib/commonjs/components/HMSManageLocalAudio.js +1 -2
  160. package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
  161. package/lib/commonjs/components/HMSManageLocalVideo.js +1 -2
  162. package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
  163. package/lib/commonjs/components/HMSManageRaiseHand.js +1 -2
  164. package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
  165. package/lib/commonjs/components/HMSManageVirtualBackground.js +1 -2
  166. package/lib/commonjs/components/HMSManageVirtualBackground.js.map +1 -1
  167. package/lib/commonjs/components/HMSMeetingEnded.js +1 -2
  168. package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -1
  169. package/lib/commonjs/components/HMSNotification.js +1 -2
  170. package/lib/commonjs/components/HMSNotification.js.map +1 -1
  171. package/lib/commonjs/components/HMSNotifications.js +1 -2
  172. package/lib/commonjs/components/HMSNotifications.js.map +1 -1
  173. package/lib/commonjs/components/HMSOverlayChatView.js +1 -2
  174. package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
  175. package/lib/commonjs/components/HMSOverlayMessageView.js +1 -2
  176. package/lib/commonjs/components/HMSOverlayMessageView.js.map +1 -1
  177. package/lib/commonjs/components/HMSPollsQuizzesNotification.js +1 -2
  178. package/lib/commonjs/components/HMSPollsQuizzesNotification.js.map +1 -1
  179. package/lib/commonjs/components/HMSPreviewEditName.js +1 -2
  180. package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
  181. package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +1 -2
  182. package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
  183. package/lib/commonjs/components/HMSPreviewJoinButton.js +1 -2
  184. package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
  185. package/lib/commonjs/components/HMSPreviewNetworkQuality.js +1 -2
  186. package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
  187. package/lib/commonjs/components/HMSPreviewPeersList.js +1 -2
  188. package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
  189. package/lib/commonjs/components/HMSPreviewSubtitle.js +1 -2
  190. package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
  191. package/lib/commonjs/components/HMSPreviewTile.js +1 -2
  192. package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
  193. package/lib/commonjs/components/HMSPreviewTitle.js +1 -2
  194. package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
  195. package/lib/commonjs/components/HMSPrimaryButton.js +1 -2
  196. package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -1
  197. package/lib/commonjs/components/HMSReconnectingNotification.js +1 -2
  198. package/lib/commonjs/components/HMSReconnectingNotification.js.map +1 -1
  199. package/lib/commonjs/components/HMSRecordingIndicator.js +1 -2
  200. package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
  201. package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js +1 -2
  202. package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -1
  203. package/lib/commonjs/components/HMSRoomOptions.js +1 -2
  204. package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
  205. package/lib/commonjs/components/HMSSecondaryButton.js +1 -2
  206. package/lib/commonjs/components/HMSSecondaryButton.js.map +1 -1
  207. package/lib/commonjs/components/HMSSendMessageInput.js +1 -2
  208. package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -1
  209. package/lib/commonjs/components/HMSTerminalErrorNotification.js +1 -2
  210. package/lib/commonjs/components/HMSTerminalErrorNotification.js.map +1 -1
  211. package/lib/commonjs/components/HMSTextInput.js +1 -2
  212. package/lib/commonjs/components/HMSTextInput.js.map +1 -1
  213. package/lib/commonjs/components/HMSVideoView.js +1 -2
  214. package/lib/commonjs/components/HMSVideoView.js.map +1 -1
  215. package/lib/commonjs/components/Header.js +1 -2
  216. package/lib/commonjs/components/Header.js.map +1 -1
  217. package/lib/commonjs/components/LeaderboardEntry.js +1 -2
  218. package/lib/commonjs/components/LeaderboardEntry.js.map +1 -1
  219. package/lib/commonjs/components/LeaveRoomBottomSheet.js +1 -2
  220. package/lib/commonjs/components/LeaveRoomBottomSheet.js.map +1 -1
  221. package/lib/commonjs/components/LocalPeerRegularVideoView.js +1 -2
  222. package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -1
  223. package/lib/commonjs/components/LocalPeerScreenshareView.js +1 -2
  224. package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -1
  225. package/lib/commonjs/components/Meeting.js +1 -2
  226. package/lib/commonjs/components/Meeting.js.map +1 -1
  227. package/lib/commonjs/components/MeetingScreenContent.js +1 -2
  228. package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
  229. package/lib/commonjs/components/MiniView.js +1 -2
  230. package/lib/commonjs/components/MiniView.js.map +1 -1
  231. package/lib/commonjs/components/Modals.js +1 -2
  232. package/lib/commonjs/components/Modals.js.map +1 -1
  233. package/lib/commonjs/components/OverlayContainer.js +1 -2
  234. package/lib/commonjs/components/OverlayContainer.js.map +1 -1
  235. package/lib/commonjs/components/OverlayedViews.js +1 -2
  236. package/lib/commonjs/components/OverlayedViews.js.map +1 -1
  237. package/lib/commonjs/components/PIPView.js +1 -2
  238. package/lib/commonjs/components/PIPView.js.map +1 -1
  239. package/lib/commonjs/components/PaginationDots.js +1 -2
  240. package/lib/commonjs/components/PaginationDots.js.map +1 -1
  241. package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js +1 -2
  242. package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js.map +1 -1
  243. package/lib/commonjs/components/Participants/ParticipantsAccordian.js +1 -2
  244. package/lib/commonjs/components/Participants/ParticipantsAccordian.js.map +1 -1
  245. package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js +1 -2
  246. package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js.map +1 -1
  247. package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js +1 -2
  248. package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js.map +1 -1
  249. package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +1 -2
  250. package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -1
  251. package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js +1 -2
  252. package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js.map +1 -1
  253. package/lib/commonjs/components/Participants/ParticipantsItem.js +1 -2
  254. package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -1
  255. package/lib/commonjs/components/Participants/ParticipantsItemOption.js +1 -2
  256. package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -1
  257. package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +1 -2
  258. package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -1
  259. package/lib/commonjs/components/Participants/ParticipantsList.js +1 -2
  260. package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
  261. package/lib/commonjs/components/Participants/ParticipantsListFooter.js +1 -2
  262. package/lib/commonjs/components/Participants/ParticipantsListFooter.js.map +1 -1
  263. package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +1 -2
  264. package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
  265. package/lib/commonjs/components/ParticipantsCount.js +1 -2
  266. package/lib/commonjs/components/ParticipantsCount.js.map +1 -1
  267. package/lib/commonjs/components/PeerMinimizedView.js +1 -2
  268. package/lib/commonjs/components/PeerMinimizedView.js.map +1 -1
  269. package/lib/commonjs/components/PeerRTCStatsContainer.js +1 -2
  270. package/lib/commonjs/components/PeerRTCStatsContainer.js.map +1 -1
  271. package/lib/commonjs/components/PeerRTCStatsView.js +1 -1
  272. package/lib/commonjs/components/PeerRTCStatsView.js.map +1 -1
  273. package/lib/commonjs/components/PeerVideoTile/AvatarView.js +1 -2
  274. package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
  275. package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js +1 -2
  276. package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -1
  277. package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js +1 -2
  278. package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js.map +1 -1
  279. package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js +1 -2
  280. package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
  281. package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +1 -2
  282. package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -1
  283. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +1 -2
  284. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
  285. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +1 -2
  286. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
  287. package/lib/commonjs/components/PeerVideoTile/VideoView.js +1 -2
  288. package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
  289. package/lib/commonjs/components/PollAndQuizQuestionResponseCard.js +1 -2
  290. package/lib/commonjs/components/PollAndQuizQuestionResponseCard.js.map +1 -1
  291. package/lib/commonjs/components/PollAndQuizQuestionResponseCards.js +1 -2
  292. package/lib/commonjs/components/PollAndQuizQuestionResponseCards.js.map +1 -1
  293. package/lib/commonjs/components/PollAndQuizSheetScreen.js +1 -2
  294. package/lib/commonjs/components/PollAndQuizSheetScreen.js.map +1 -1
  295. package/lib/commonjs/components/PollAndQuizVoting.js +1 -2
  296. package/lib/commonjs/components/PollAndQuizVoting.js.map +1 -1
  297. package/lib/commonjs/components/PollAndQuizzStateLabel.js +1 -2
  298. package/lib/commonjs/components/PollAndQuizzStateLabel.js.map +1 -1
  299. package/lib/commonjs/components/PollQDeleteConfirmationSheetView.js +1 -2
  300. package/lib/commonjs/components/PollQDeleteConfirmationSheetView.js.map +1 -1
  301. package/lib/commonjs/components/PollQuestion.js +1 -2
  302. package/lib/commonjs/components/PollQuestion.js.map +1 -1
  303. package/lib/commonjs/components/PollQuestionDeleteConfirmation.js +1 -2
  304. package/lib/commonjs/components/PollQuestionDeleteConfirmation.js.map +1 -1
  305. package/lib/commonjs/components/PollQuestions.js +1 -2
  306. package/lib/commonjs/components/PollQuestions.js.map +1 -1
  307. package/lib/commonjs/components/PollResponseProgressView.js +1 -2
  308. package/lib/commonjs/components/PollResponseProgressView.js.map +1 -1
  309. package/lib/commonjs/components/PollsAndQuizBottomSheet.js +1 -2
  310. package/lib/commonjs/components/PollsAndQuizBottomSheet.js.map +1 -1
  311. package/lib/commonjs/components/PollsAndQuizzesCard.js +1 -2
  312. package/lib/commonjs/components/PollsAndQuizzesCard.js.map +1 -1
  313. package/lib/commonjs/components/PollsAndQuizzesModalContent.js +1 -2
  314. package/lib/commonjs/components/PollsAndQuizzesModalContent.js.map +1 -1
  315. package/lib/commonjs/components/PollsConfigAndList.js +1 -2
  316. package/lib/commonjs/components/PollsConfigAndList.js.map +1 -1
  317. package/lib/commonjs/components/PressableIcon.js +1 -2
  318. package/lib/commonjs/components/PressableIcon.js.map +1 -1
  319. package/lib/commonjs/components/Preview.js +1 -2
  320. package/lib/commonjs/components/Preview.js.map +1 -1
  321. package/lib/commonjs/components/PreviewForRoleChangeModal.js +1 -2
  322. package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -1
  323. package/lib/commonjs/components/PreviousPollsAndQuizzesList.js +1 -2
  324. package/lib/commonjs/components/PreviousPollsAndQuizzesList.js.map +1 -1
  325. package/lib/commonjs/components/QuizEndOptionsView.js +1 -2
  326. package/lib/commonjs/components/QuizEndOptionsView.js.map +1 -1
  327. package/lib/commonjs/components/QuizLeaderboardEntriesScreen.js +1 -2
  328. package/lib/commonjs/components/QuizLeaderboardEntriesScreen.js.map +1 -1
  329. package/lib/commonjs/components/QuizLeaderboardScreen.js +1 -2
  330. package/lib/commonjs/components/QuizLeaderboardScreen.js.map +1 -1
  331. package/lib/commonjs/components/QuizLeaderboardSummary.js +1 -2
  332. package/lib/commonjs/components/QuizLeaderboardSummary.js.map +1 -1
  333. package/lib/commonjs/components/ReconnectionView.js +1 -2
  334. package/lib/commonjs/components/ReconnectionView.js.map +1 -1
  335. package/lib/commonjs/components/RoomSettingsModalContent.js +1 -2
  336. package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
  337. package/lib/commonjs/components/StatusBar.js +1 -2
  338. package/lib/commonjs/components/StatusBar.js.map +1 -1
  339. package/lib/commonjs/components/StopRecordingModalContent.js +1 -2
  340. package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
  341. package/lib/commonjs/components/StreamingQualityModalContent.js +1 -2
  342. package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -1
  343. package/lib/commonjs/components/TilesContainer.js.map +1 -1
  344. package/lib/commonjs/components/UnmountAfterDelay.js +1 -2
  345. package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -1
  346. package/lib/commonjs/components/VirtualBackgroundBottomSheet.js +1 -2
  347. package/lib/commonjs/components/VirtualBackgroundBottomSheet.js.map +1 -1
  348. package/lib/commonjs/components/VirtualBackgroundModalContent.js +103 -16
  349. package/lib/commonjs/components/VirtualBackgroundModalContent.js.map +1 -1
  350. package/lib/commonjs/components/VoterParticipationSummary.js +1 -2
  351. package/lib/commonjs/components/VoterParticipationSummary.js.map +1 -1
  352. package/lib/commonjs/components/WebrtcTranscriptOverlayView.js +1 -2
  353. package/lib/commonjs/components/WebrtcTranscriptOverlayView.js.map +1 -1
  354. package/lib/commonjs/components/WebrtcView.js +1 -2
  355. package/lib/commonjs/components/WebrtcView.js.map +1 -1
  356. package/lib/commonjs/components/WelcomeInMeeting.js +1 -2
  357. package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -1
  358. package/lib/commonjs/components/Whiteboard.js +1 -2
  359. package/lib/commonjs/components/Whiteboard.js.map +1 -1
  360. package/lib/commonjs/components/WhiteboardContainer.js +1 -2
  361. package/lib/commonjs/components/WhiteboardContainer.js.map +1 -1
  362. package/lib/commonjs/components/WhiteboardFullScreenButton.js +1 -2
  363. package/lib/commonjs/components/WhiteboardFullScreenButton.js.map +1 -1
  364. package/lib/commonjs/hooks-sdk.js.map +1 -1
  365. package/lib/commonjs/hooks-util.js +13 -25
  366. package/lib/commonjs/hooks-util.js.map +1 -1
  367. package/lib/commonjs/redux/actions/index.js +1 -2
  368. package/lib/commonjs/redux/actions/index.js.map +1 -1
  369. package/lib/commonjs/redux/reducers/appState.js +1 -2
  370. package/lib/commonjs/redux/reducers/appState.js.map +1 -1
  371. package/lib/commonjs/redux/reducers/message.js +1 -2
  372. package/lib/commonjs/redux/reducers/message.js.map +1 -1
  373. package/lib/commonjs/redux/reducers/userState.js +1 -2
  374. package/lib/commonjs/redux/reducers/userState.js.map +1 -1
  375. package/lib/commonjs/utils/functions.js +1 -2
  376. package/lib/commonjs/utils/functions.js.map +1 -1
  377. package/lib/module/components/AnimatedFooter.js.map +1 -1
  378. package/lib/module/components/AnimatedHLSFooter.js.map +1 -1
  379. package/lib/module/components/AnimatedHeader.js.map +1 -1
  380. package/lib/module/components/Chat/PinnedMessages.js.map +1 -1
  381. package/lib/module/components/DefaultModal.js.map +1 -1
  382. package/lib/module/components/GridView.js +1 -1
  383. package/lib/module/components/GridView.js.map +1 -1
  384. package/lib/module/components/HLSAnimatedDescriptionPane.js.map +1 -1
  385. package/lib/module/components/HLSManageChatTextInput.js.map +1 -1
  386. package/lib/module/components/HMSBaseButton.js.map +1 -1
  387. package/lib/module/components/HMSKeyboardAvoidingView.android.js.map +1 -1
  388. package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -1
  389. package/lib/module/components/OverlayContainer.js.map +1 -1
  390. package/lib/module/components/PeerRTCStatsView.js +1 -1
  391. package/lib/module/components/PeerRTCStatsView.js.map +1 -1
  392. package/lib/module/components/PeerVideoTile/HMSPinchGesture.js.map +1 -1
  393. package/lib/module/components/TilesContainer.js.map +1 -1
  394. package/lib/module/components/VirtualBackgroundModalContent.js +102 -14
  395. package/lib/module/components/VirtualBackgroundModalContent.js.map +1 -1
  396. package/lib/module/hooks-sdk.js.map +1 -1
  397. package/lib/module/hooks-util.js +13 -25
  398. package/lib/module/hooks-util.js.map +1 -1
  399. package/lib/typescript/components/AnimatedFooter.d.ts +1 -0
  400. package/lib/typescript/components/AnimatedFooter.d.ts.map +1 -1
  401. package/lib/typescript/components/AnimatedHLSFooter.d.ts +3 -3
  402. package/lib/typescript/components/AnimatedHLSFooter.d.ts.map +1 -1
  403. package/lib/typescript/components/AnimatedHeader.d.ts +1 -0
  404. package/lib/typescript/components/AnimatedHeader.d.ts.map +1 -1
  405. package/lib/typescript/components/DefaultModal.d.ts +1 -0
  406. package/lib/typescript/components/DefaultModal.d.ts.map +1 -1
  407. package/lib/typescript/components/GridView.d.ts.map +1 -1
  408. package/lib/typescript/components/HLSAnimatedDescriptionPane.d.ts +1 -0
  409. package/lib/typescript/components/HLSAnimatedDescriptionPane.d.ts.map +1 -1
  410. package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -1
  411. package/lib/typescript/components/HMSKeyboardAvoidingView.android.d.ts +3 -2
  412. package/lib/typescript/components/HMSKeyboardAvoidingView.android.d.ts.map +1 -1
  413. package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts +3 -3
  414. package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -1
  415. package/lib/typescript/components/OverlayContainer.d.ts +4 -1
  416. package/lib/typescript/components/OverlayContainer.d.ts.map +1 -1
  417. package/lib/typescript/components/PeerVideoTile/HMSPinchGesture.d.ts +1 -0
  418. package/lib/typescript/components/PeerVideoTile/HMSPinchGesture.d.ts.map +1 -1
  419. package/lib/typescript/components/PressableIcon.d.ts +1 -1
  420. package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
  421. package/lib/typescript/components/VirtualBackgroundModalContent.d.ts.map +1 -1
  422. package/lib/typescript/components/styles.d.ts +67 -67
  423. package/lib/typescript/hooks-util.d.ts +1 -1
  424. package/lib/typescript/hooks-util.d.ts.map +1 -1
  425. package/package.json +31 -24
  426. package/src/components/AnimatedFooter.tsx +1 -0
  427. package/src/components/AnimatedHLSFooter.tsx +3 -2
  428. package/src/components/AnimatedHeader.tsx +1 -0
  429. package/src/components/Chat/PinnedMessages.tsx +1 -1
  430. package/src/components/DefaultModal.tsx +1 -0
  431. package/src/components/GridView.tsx +7 -4
  432. package/src/components/HLSAnimatedDescriptionPane.tsx +1 -0
  433. package/src/components/HLSManageChatTextInput.tsx +1 -1
  434. package/src/components/HMSBaseButton.tsx +3 -1
  435. package/src/components/HMSKeyboardAvoidingView.android.tsx +3 -1
  436. package/src/components/HMSKeyboardAvoidingView.tsx +3 -2
  437. package/src/components/OverlayContainer.tsx +4 -1
  438. package/src/components/PeerRTCStatsView.tsx +1 -1
  439. package/src/components/PeerVideoTile/HMSPinchGesture.tsx +1 -0
  440. package/src/components/PressableIcon.tsx +1 -1
  441. package/src/components/TilesContainer.tsx +29 -11
  442. package/src/components/VirtualBackgroundModalContent.tsx +171 -17
  443. package/src/hooks-sdk.ts +10 -10
  444. package/src/hooks-util.ts +3 -18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@100mslive/react-native-room-kit",
3
- "version": "1.2.3",
3
+ "version": "1.3.1",
4
4
  "description": "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -117,7 +117,7 @@
117
117
  "ai"
118
118
  ],
119
119
  "repository": "https://github.com/100mslive/react-native-hms",
120
- "author": "Yogesh <yogesh@100ms.live> (https://www.100ms.live/), Jatin <jatin.nagar@100ms.live> (https://www.100ms.live/)",
120
+ "author": "Yogesh Singh (https://www.100ms.live/)",
121
121
  "license": "MIT",
122
122
  "bugs": {
123
123
  "url": "https://github.com/100mslive/react-native-hms/issues"
@@ -127,20 +127,16 @@
127
127
  "registry": "https://registry.npmjs.org/"
128
128
  },
129
129
  "dependencies": {
130
- "@100mslive/types-prebuilt": "^0.12.11",
131
- "@react-navigation/native": "^6.0.8",
132
- "react-redux": "^7.2.4",
133
- "redux": "^4.1.0"
130
+ "@100mslive/types-prebuilt": "0.12.12"
134
131
  },
135
132
  "devDependencies": {
136
- "@100mslive/react-native-video-plugin": "1.0.0",
133
+ "@100mslive/react-native-video-plugin": "1.1.3",
137
134
  "@commitlint/config-conventional": "^17.0.2",
138
135
  "@evilmartians/lefthook": "^1.2.2",
139
136
  "@react-native-community/eslint-config": "^3.0.2",
140
137
  "@release-it/conventional-changelog": "^5.0.0",
141
138
  "@types/jest": "^28.1.2",
142
- "@types/react": "~17.0.21",
143
- "@types/react-native": "^0.64.5",
139
+ "@types/react": "^18.3.1",
144
140
  "commitlint": "^17.0.2",
145
141
  "del-cli": "^5.0.0",
146
142
  "eslint": "^8.4.1",
@@ -149,35 +145,46 @@
149
145
  "jest": "^28.1.1",
150
146
  "pod-install": "^0.1.0",
151
147
  "prettier": "^2.0.5",
152
- "react": "18.2.0",
153
- "react-native": "0.71.19",
148
+ "react": "18.3.1",
149
+ "react-native": "0.77.3",
154
150
  "react-native-builder-bob": "^0.21.2",
155
151
  "react-native-image-picker": "^7.1.2",
156
152
  "release-it": "^15.0.0",
157
153
  "typescript": "^5.0.2"
158
154
  },
159
155
  "peerDependencies": {
160
- "@100mslive/react-native-hms": "1.11.0",
161
- "@react-native-community/blur": "^4.3.2",
162
- "@react-native-masked-view/masked-view": "^0.2.9",
163
- "@shopify/flash-list": "^1.4.3",
164
- "lottie-react-native": "5.1.6",
156
+ "@100mslive/react-native-hms": "1.12.1",
157
+ "@react-native-community/blur": "^4.4.0",
158
+ "@react-native-masked-view/masked-view": "^0.3.0",
159
+ "@react-navigation/native": "^6.1.0",
160
+ "@shopify/flash-list": "^1.7.0",
161
+ "lottie-react-native": ">=7.0.0",
165
162
  "react": "*",
166
- "react-native": "*",
167
- "react-native-gesture-handler": "~2.15.0",
168
- "react-native-linear-gradient": "^2.7.3",
163
+ "react-native": ">=0.77.3",
164
+ "react-native-gesture-handler": ">=2.22.0",
165
+ "react-native-linear-gradient": "^2.8.0",
169
166
  "react-native-modal": "^13.0.1",
170
- "react-native-reanimated": ">=2.17.0",
171
- "react-native-safe-area-context": "^3.3.0",
167
+ "react-native-reanimated": ">=3.0.0",
168
+ "react-native-safe-area-context": "^5.0.0",
172
169
  "react-native-simple-toast": "^1.1.3",
173
- "react-native-webview": "^13.8.7"
170
+ "react-native-webview": "^13.12.0",
171
+ "react-redux": "^8.0.0",
172
+ "redux": "^4.2.0"
174
173
  },
175
174
  "additionalDependencies": {
176
- "@100mslive/react-native-video-plugin": "1.0.0",
175
+ "@100mslive/react-native-video-plugin": "1.1.0",
177
176
  "react-native-image-picker": "^7.1.2"
178
177
  },
178
+ "overrides": {
179
+ "fast-xml-parser": "^5.3.4",
180
+ "vm2": ">=3.10.2",
181
+ "node-forge": ">=1.3.2"
182
+ },
179
183
  "resolutions": {
180
- "@types/react": "17.0.21"
184
+ "@types/react": "^18.3.1",
185
+ "fast-xml-parser": "^5.3.4",
186
+ "vm2": ">=3.10.2",
187
+ "node-forge": ">=1.3.2"
181
188
  },
182
189
  "engines": {
183
190
  "node": ">= 16.0.0"
@@ -10,6 +10,7 @@ import { useFooterHeight } from './Footer';
10
10
 
11
11
  interface AnimatedFooterProps {
12
12
  offset: SharedValue<number>;
13
+ children?: React.ReactNode;
13
14
  }
14
15
 
15
16
  export const AnimatedFooter: React.FC<AnimatedFooterProps> = ({
@@ -4,13 +4,14 @@ import Animated, {
4
4
  interpolate,
5
5
  useAnimatedStyle,
6
6
  } from 'react-native-reanimated';
7
- import type { SharedValue } from 'react-native-reanimated';
7
+ import type { SharedValue, AnimatedStyle } from 'react-native-reanimated';
8
8
 
9
9
  import { useFooterHeight } from './Footer';
10
10
 
11
11
  interface AnimatedHLSFooterProps {
12
12
  offset: SharedValue<number>;
13
- style?: StyleProp<Animated.AnimateStyle<StyleProp<ViewStyle>>>;
13
+ style?: StyleProp<AnimatedStyle<ViewStyle>>;
14
+ children?: React.ReactNode;
14
15
  }
15
16
 
16
17
  export const AnimatedHLSFooter: React.FC<AnimatedHLSFooterProps> = ({
@@ -11,6 +11,7 @@ import { useHeaderHeight } from './Header';
11
11
 
12
12
  export interface AnimatedHeaderProps {
13
13
  offset: SharedValue<number>;
14
+ children?: React.ReactNode;
14
15
  }
15
16
 
16
17
  export const AnimatedHeader: React.FC<AnimatedHeaderProps> = ({
@@ -286,7 +286,7 @@ export const _PinnedMessages: React.FC<PinnedMessagesProps> = ({
286
286
  const _keyExtractor = React.useCallback((item: PinnedMessage) => item.id, []);
287
287
 
288
288
  const _onContentSizeChange = React.useCallback(
289
- (_w, _h) => {
289
+ (_w: number, _h: number) => {
290
290
  listRef.current?.scrollToOffset({
291
291
  offset: listHeight * selectedPinnedMessageIndexRef.current,
292
292
  animated: false,
@@ -11,6 +11,7 @@ import { CloseIcon } from '../Icons';
11
11
  import { useIsLandscapeOrientation } from '../utils/dimension';
12
12
 
13
13
  export interface DefaultModalProps {
14
+ children?: React.ReactNode;
14
15
  modalVisible: boolean;
15
16
  setModalVisible: any;
16
17
  animationIn?: SupportedAnimation;
@@ -227,7 +227,10 @@ const RegularTiles = React.forwardRef<
227
227
 
228
228
  const isLandscapeOrientation = useIsLandscapeOrientation();
229
229
 
230
- const _keyExtractor = React.useCallback((item) => item[0]?.id, []);
230
+ const _keyExtractor = React.useCallback(
231
+ (item: PeerTrackNode[]) => item[0]?.id || '',
232
+ []
233
+ );
231
234
 
232
235
  const _handleViewableItemsChanged = React.useCallback(
233
236
  (info: { viewableItems: ViewToken[]; changed: ViewToken[] }) => {
@@ -244,7 +247,7 @@ const RegularTiles = React.forwardRef<
244
247
  );
245
248
 
246
249
  const _renderItem = React.useCallback(
247
- ({ item }) => {
250
+ ({ item }: { item: PeerTrackNode[] }) => {
248
251
  return (
249
252
  <TilesContainer
250
253
  onPeerTileMorePress={onPeerTileMorePress}
@@ -310,7 +313,7 @@ const ScreenshareTiles = React.forwardRef<
310
313
  (state: RootState) => state.app.screensharePeerTrackNodes
311
314
  );
312
315
 
313
- const _keyExtractor = React.useCallback((item) => item.id, []);
316
+ const _keyExtractor = React.useCallback((item: PeerTrackNode) => item.id, []);
314
317
 
315
318
  const _handleViewableItemsChanged = React.useCallback(
316
319
  (info: { viewableItems: ViewToken[]; changed: ViewToken[] }) => {
@@ -328,7 +331,7 @@ const ScreenshareTiles = React.forwardRef<
328
331
  const tileWidth = safeWidth;
329
332
 
330
333
  const _renderItem = React.useCallback(
331
- ({ item }) => {
334
+ ({ item }: { item: PeerTrackNode }) => {
332
335
  return (
333
336
  <Tile
334
337
  height={'100%'}
@@ -11,6 +11,7 @@ export interface HLSAnimatedDescriptionPaneProps {
11
11
  sharedValue: SharedValue<number>;
12
12
  height: number;
13
13
  style?: StyleProp<AnimatedStyle<StyleProp<ViewStyle>>>;
14
+ children?: React.ReactNode;
14
15
  }
15
16
 
16
17
  export const HLSAnimatedDescriptionPane: React.FC<
@@ -39,7 +39,7 @@ export const HLSManageChatTextInput = () => {
39
39
  const keyboardAvoidingStyles = React.useMemo(
40
40
  () => ({
41
41
  active: { width: chatWrapperConstraints.width - 32 },
42
- inactive: { width: '100%' },
42
+ inactive: { width: '100%' as const },
43
43
  }),
44
44
  [chatWrapperConstraints]
45
45
  );
@@ -45,7 +45,9 @@ export const HMSBaseButton: React.FC<HMSBaseButtonProps> = ({
45
45
  wrapWithGestureDetector,
46
46
  useTouchableOpacity,
47
47
  }) => {
48
- const Touchable = (useTouchableOpacity ? TouchableOpacity : TouchableHighlight) as React.ElementType;
48
+ const Touchable = (
49
+ useTouchableOpacity ? TouchableOpacity : TouchableHighlight
50
+ ) as React.ElementType;
49
51
 
50
52
  const button = (
51
53
  <Touchable
@@ -1,9 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import type { StyleProp, ViewStyle } from 'react-native';
3
3
  import Animated from 'react-native-reanimated'; // useDerivedValue, // useAnimatedStyle, // useAnimatedKeyboard,
4
+ import type { AnimatedStyle } from 'react-native-reanimated';
4
5
 
5
6
  export interface HMSKeyboardAvoidingViewProps {
6
- style?: StyleProp<Animated.AnimateStyle<StyleProp<ViewStyle>>>;
7
+ children?: React.ReactNode;
8
+ style?: StyleProp<AnimatedStyle<ViewStyle>>;
7
9
  bottomOffset?: number;
8
10
  }
9
11
 
@@ -6,12 +6,13 @@ import Animated, {
6
6
  useAnimatedStyle,
7
7
  useDerivedValue,
8
8
  } from 'react-native-reanimated';
9
- import type { SharedValue } from 'react-native-reanimated';
9
+ import type { SharedValue, AnimatedStyle } from 'react-native-reanimated';
10
10
 
11
11
  import { useKeyboardState } from '../hooks-util';
12
12
 
13
13
  export interface HMSKeyboardAvoidingViewProps {
14
- style?: StyleProp<Animated.AnimateStyle<StyleProp<ViewStyle>>>;
14
+ children?: React.ReactNode;
15
+ style?: StyleProp<AnimatedStyle<ViewStyle>>;
15
16
  styleWhenInactive?: ViewStyle;
16
17
  styleWhenActive?: ViewStyle;
17
18
  bottomOffset?: number | SharedValue<number>;
@@ -4,7 +4,9 @@ import type { StyleProp, ViewStyle } from 'react-native';
4
4
  import type { AnimatedStyle } from 'react-native-reanimated';
5
5
  import Animated from 'react-native-reanimated';
6
6
 
7
- type OverlayContainerProps = {};
7
+ type OverlayContainerProps = {
8
+ children?: React.ReactNode;
9
+ };
8
10
 
9
11
  export const OverlayContainer: React.FC<OverlayContainerProps> & {
10
12
  Overlay: typeof Overlay;
@@ -14,6 +16,7 @@ export const OverlayContainer: React.FC<OverlayContainerProps> & {
14
16
 
15
17
  export type OverlayProps = {
16
18
  animatedStyle?: StyleProp<AnimatedStyle<StyleProp<ViewStyle>>>;
19
+ children?: React.ReactNode;
17
20
  };
18
21
 
19
22
  const Overlay: React.FC<OverlayProps> = ({ children, animatedStyle }) => {
@@ -35,7 +35,7 @@ const PeerRTCStatsView: React.FC<PeerRTCStatsViewProps> = ({
35
35
  return (
36
36
  <View>
37
37
  {videoTrackStats && 'layer' in videoTrackStats ? (
38
- <Text style={styles.statsTitle}>{videoTrackStats.layer}</Text>
38
+ <Text style={styles.statsTitle}>{String(videoTrackStats.layer)}</Text>
39
39
  ) : null}
40
40
 
41
41
  <Text style={styles.statsText}>
@@ -8,6 +8,7 @@ import Animated, {
8
8
  } from 'react-native-reanimated';
9
9
 
10
10
  export interface HMSPinchGestureProps {
11
+ children?: React.ReactNode;
11
12
  style?: StyleProp<ViewStyle>;
12
13
  }
13
14
 
@@ -6,7 +6,7 @@ import { GestureDetector, Gesture } from 'react-native-gesture-handler';
6
6
  import { useHMSRoomStyleSheet, useIsHLSViewer } from '../hooks-util';
7
7
 
8
8
  interface PressableIconProps extends Omit<TouchableOpacityProps, 'children'> {
9
- children: Pick<TouchableOpacityProps, 'children'>;
9
+ children?: React.ReactNode;
10
10
  active?: boolean;
11
11
  rounded?: boolean;
12
12
  border?: boolean;
@@ -131,17 +131,29 @@ export { TilesContainer };
131
131
 
132
132
  // Utility Functions
133
133
 
134
- const oneTileStyle = { width: '100%', height: '100%' }; // 1 Column Layout
135
- const twoTileStyle = { width: '100%', height: '49.7222%' }; // 1 Column Layout
136
- const threeTileStyle = { width: '100%', height: '33%' }; // 1 Column Layout
134
+ const oneTileStyle = { width: '100%' as const, height: '100%' as const }; // 1 Column Layout
135
+ const twoTileStyle = { width: '100%' as const, height: '49.7222%' as const }; // 1 Column Layout
136
+ const threeTileStyle = { width: '100%' as const, height: '33%' as const }; // 1 Column Layout
137
137
 
138
- const fourTileStyle = { width: '49.5%', height: '100%' }; // Grid Layout when Width and Height has no-correlatiom
139
- const fiveAndSixTileStyle = { width: '49.5%', aspectRatio: 1 }; // Grid Layout when width and Height as fixed aspectRatio
138
+ const fourTileStyle = { width: '49.5%' as const, height: '100%' as const }; // Grid Layout when Width and Height has no-correlatiom
139
+ const fiveAndSixTileStyle = { width: '49.5%' as const, aspectRatio: 1 }; // Grid Layout when width and Height as fixed aspectRatio
140
140
 
141
- const oneTileStyleLandscape = { width: '100%', height: '100%' };
142
- const twoTileStyleLandscape = { width: '49.7222%', height: '100%' };
143
- const threeTileStyleLandscape = { width: '33%', height: '100%' };
144
- const fourTileStyleLandscape = { width: '50%', height: '50%' };
141
+ const oneTileStyleLandscape = {
142
+ width: '100%' as const,
143
+ height: '100%' as const,
144
+ };
145
+ const twoTileStyleLandscape = {
146
+ width: '49.7222%' as const,
147
+ height: '100%' as const,
148
+ };
149
+ const threeTileStyleLandscape = {
150
+ width: '33%' as const,
151
+ height: '100%' as const,
152
+ };
153
+ const fourTileStyleLandscape = {
154
+ width: '50%' as const,
155
+ height: '50%' as const,
156
+ };
145
157
 
146
158
  function computeTileWidthAndHeight(
147
159
  totalTiles: number,
@@ -166,7 +178,10 @@ function computeTileWidthAndHeight(
166
178
  twoTileStyleLandscape,
167
179
  threeTileStyleLandscape,
168
180
  fourTileStyleLandscape,
169
- ][Math.min(totalTiles - 1, 3)] || { width: '100%', height: '100%' }
181
+ ][Math.min(totalTiles - 1, 3)] || {
182
+ width: '100%' as const,
183
+ height: '100%' as const,
184
+ }
170
185
  );
171
186
  }
172
187
 
@@ -181,6 +196,9 @@ function computeTileWidthAndHeight(
181
196
  threeTileStyle,
182
197
  fourTileStyle,
183
198
  fiveAndSixTileStyle,
184
- ][Math.min(totalTiles - 1, 4)] || { width: '100%', height: '100%' }
199
+ ][Math.min(totalTiles - 1, 4)] || {
200
+ width: '100%' as const,
201
+ height: '100%' as const,
202
+ }
185
203
  );
186
204
  }
@@ -8,11 +8,12 @@ import {
8
8
  TouchableOpacity,
9
9
  ActivityIndicator,
10
10
  } from 'react-native';
11
- import type { ImageRequireSource } from 'react-native';
11
+ import type { ImageRequireSource, ImageURISource } from 'react-native';
12
12
  import { useDispatch, useSelector } from 'react-redux';
13
13
  import { HMSTrackType, HMSVideoViewMode } from '@100mslive/react-native-hms';
14
14
  import type { HMSVirtualBackgroundPlugin } from '../modules/videoPluginWrapper';
15
15
  import { ImagePicker } from '../modules/imagePickerWrapper';
16
+ import { selectLayoutConfigForRole } from '../hooks-util-selectors';
16
17
 
17
18
  import { BottomSheet } from './BottomSheet';
18
19
  import {
@@ -54,6 +55,20 @@ export const VirtualBackgroundModalContent: React.FC<
54
55
  );
55
56
  const disableAutoPip = useDisableAutoPip();
56
57
 
58
+ // Get layout config for virtual background images
59
+ const layoutConfig = useSelector((state: RootState) => {
60
+ try {
61
+ const currentRole = state.hmsStates.localPeer?.role || null;
62
+ return selectLayoutConfigForRole(
63
+ state.hmsStates.layoutConfig,
64
+ currentRole
65
+ );
66
+ } catch (error) {
67
+ console.warn('[VirtualBackground] Error selecting layout config:', error);
68
+ return null;
69
+ }
70
+ });
71
+
57
72
  const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
58
73
  semiBoldSurfaceHigh: {
59
74
  color: theme.palette.on_surface_high,
@@ -181,16 +196,91 @@ export const VirtualBackgroundModalContent: React.FC<
181
196
  try {
182
197
  if (videoPlugin) {
183
198
  setShowLoading(true);
199
+ console.log(
200
+ '[VirtualBackground] Setting background with asset:',
201
+ JSON.stringify(asset.src, null, 2)
202
+ );
203
+
204
+ // Check if it's a remote URL that needs dimensions
205
+ const isRemoteURL =
206
+ typeof asset.src === 'object' &&
207
+ 'uri' in asset.src &&
208
+ asset.src.uri &&
209
+ (asset.src.uri.startsWith('http://') ||
210
+ asset.src.uri.startsWith('https://'));
211
+
212
+ let imageSource = asset.src;
213
+
214
+ // For remote URLs, get dimensions if not already present
215
+ if (isRemoteURL) {
216
+ const src = asset.src as ImageURISource;
217
+
218
+ // Check if width and height are already present
219
+ if (!src.width || !src.height) {
220
+ console.log(
221
+ '[VirtualBackground] Getting dimensions for remote URL:',
222
+ src.uri
223
+ );
224
+
225
+ try {
226
+ // Use Image.getSize to get dimensions from remote URL
227
+ const dimensions = await new Promise<{
228
+ width: number;
229
+ height: number;
230
+ }>((resolve, reject) => {
231
+ Image.getSize(
232
+ src.uri!,
233
+ (width, height) => resolve({ width, height }),
234
+ (error) => reject(error)
235
+ );
236
+ });
237
+
238
+ console.log('[VirtualBackground] Got dimensions:', dimensions);
239
+
240
+ // Create new source with dimensions
241
+ imageSource = {
242
+ uri: src.uri,
243
+ width: dimensions.width,
244
+ height: dimensions.height,
245
+ };
246
+ } catch (dimensionError) {
247
+ console.error(
248
+ '[VirtualBackground] Failed to get image dimensions:',
249
+ dimensionError
250
+ );
251
+ // Continue with original source, might still work
252
+ }
253
+ }
254
+ }
255
+
184
256
  if (selectedVirtualBG === null) {
185
257
  await videoPlugin.enable();
186
258
  }
187
- await videoPlugin.setBackground(asset.src);
259
+
260
+ console.log(
261
+ '[VirtualBackground] Calling setBackground with source:',
262
+ JSON.stringify(imageSource, null, 2)
263
+ );
264
+ await videoPlugin.setBackground(imageSource);
265
+
188
266
  setShowLoading(false);
189
267
  dispatch(setSelectedVirtualBackground(asset.label));
268
+ console.log(
269
+ '[VirtualBackground] Successfully set background:',
270
+ asset.label
271
+ );
190
272
  }
191
273
  } catch (error) {
192
274
  setShowLoading(false);
193
- console.error('Error setting virtual background', error);
275
+ console.error(
276
+ '[VirtualBackground] Error setting virtual background for:',
277
+ asset.label
278
+ );
279
+ console.error(
280
+ '[VirtualBackground] Asset source:',
281
+ JSON.stringify(asset.src, null, 2)
282
+ );
283
+ console.error('[VirtualBackground] Error details:', error);
194
284
  }
195
285
  };
196
286
 
@@ -201,6 +291,71 @@ export const VirtualBackgroundModalContent: React.FC<
201
291
  localPeer.videoTrack.type === HMSTrackType.VIDEO &&
202
292
  !isLocalVideoMuted;
203
293
 
294
+ // Memoize backgrounds from layout config
295
+ const configBackgrounds = React.useMemo(() => {
296
+ const bgArray: Array<{
297
+ label: string;
298
+ src: ImageRequireSource | { uri: string };
299
+ }> = [];
300
+
301
+ try {
302
+ // Add virtual background images from layout config
303
+ if (!layoutConfig) {
304
+ console.log('[VirtualBackground] No layout config available');
305
+ return bgArray;
306
+ }
307
+
308
+ const virtualBackgroundConfig =
309
+ layoutConfig?.screens?.conferencing?.default?.elements
310
+ ?.virtual_background;
311
+
312
+ if (!virtualBackgroundConfig) {
313
+ console.log(
314
+ '[VirtualBackground] No virtual background config in layout'
315
+ );
316
+ return bgArray;
317
+ }
318
+
319
+ const backgroundMediaList =
320
+ virtualBackgroundConfig?.background_media || [];
321
+
322
+ console.log(
323
+ '[VirtualBackground] Found',
324
+ backgroundMediaList.length,
325
+ 'background images in config'
326
+ );
327
+
328
+ // Process each background image
329
+ backgroundMediaList.forEach((media, index) => {
330
+ if (media?.url) {
331
+ // Extract filename from URL or use a generic label
332
+ const urlParts = media.url.split('/');
333
+ const filename =
334
+ urlParts[urlParts.length - 1] || `Background ${index + 1}`;
335
+
336
+ console.log(
337
+ `[VirtualBackground] Adding image ${index + 1}:`,
338
+ media.url
339
+ );
340
+
341
+ // Add the image - remote URLs will be handled with Image.getSize on demand
342
+ bgArray.push({
343
+ label: filename,
344
+ src: { uri: media.url },
345
+ });
346
+ }
347
+ });
348
+ } catch (error) {
349
+ console.error(
350
+ '[VirtualBackground] Error processing background images:',
351
+ error
352
+ );
353
+ }
354
+
355
+ return bgArray;
356
+ }, [layoutConfig]);
357
+
358
+ // Combine config backgrounds with upload button
204
359
  const backgrounds: Array<
205
360
  | {
206
361
  icon: React.JSX.Element;
@@ -212,21 +367,20 @@ export const VirtualBackgroundModalContent: React.FC<
212
367
  icon?: undefined;
213
368
  onPress?: undefined;
214
369
  label: string;
215
- src: ImageRequireSource;
370
+ src: ImageRequireSource | { uri: string };
216
371
  }
217
- > = [];
218
-
219
- if (ImagePicker) {
220
- // backgrounds.push({
221
- // label: 'Camera',
222
- // onPress: handleCameraPress,
223
- // });
224
- backgrounds.push({
225
- icon: <AddImageIcon />,
226
- label: 'Upload',
227
- onPress: handlePhotoLibraryPress,
228
- });
229
- }
372
+ > = [
373
+ ...configBackgrounds,
374
+ ...(ImagePicker
375
+ ? [
376
+ {
377
+ icon: <AddImageIcon />,
378
+ label: 'Upload',
379
+ onPress: handlePhotoLibraryPress,
380
+ },
381
+ ]
382
+ : []),
383
+ ];
230
384
 
231
385
  return (
232
386
  <View style={styles.flexView}>