@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.
24 lines • 902 B
JavaScript
import * as React from 'react';
import { ActivityIndicator } from 'react-native';
import { HMSNotification } from './HMSNotification';
import { useHMSRoomColorPalette, useHMSRoomStyle } from '../hooks-util';
import { NotificationTypes } from '../types';
export const HMSReconnectingNotification = () => {
const {
on_surface_high: onSurfaceHigh
} = useHMSRoomColorPalette();
const notificationStyle = useHMSRoomStyle(theme => ({
backgroundColor: theme.palette.surface_default
}));
return /*#__PURE__*/React.createElement(HMSNotification, {
id: NotificationTypes.RECONNECTING,
autoDismiss: false,
style: notificationStyle,
text: 'You lost your network connection. Trying to reconnect.',
icon: /*#__PURE__*/React.createElement(ActivityIndicator, {
size: "small",
color: onSurfaceHigh
})
});
};
//# sourceMappingURL=HMSReconnectingNotification.js.map