@100mslive/react-native-room-kit
Version:
100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.
20 lines • 783 B
JavaScript
import * as React from 'react';
import { HMSNotifications } from './HMSNotifications';
import { OverlayContainer } from './OverlayContainer';
import { HMSOverlayChatView } from './HMSOverlayChatView';
import { useShowChatAndParticipants } from '../hooks-util';
const _OverlayedViews = ({
offset,
animatedStyle
}) => {
const {
overlayChatVisible
} = useShowChatAndParticipants();
return /*#__PURE__*/React.createElement(OverlayContainer.Overlay, {
animatedStyle: animatedStyle
}, overlayChatVisible ? /*#__PURE__*/React.createElement(HMSOverlayChatView, {
offset: offset
}) : null, /*#__PURE__*/React.createElement(HMSNotifications, null));
};
export const OverlayedViews = /*#__PURE__*/React.memo(_OverlayedViews);
//# sourceMappingURL=OverlayedViews.js.map