UNPKG

@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.

27 lines 1.05 kB
import * as React from 'react'; import { Platform, View } from 'react-native'; import { useSelector } from 'react-redux'; import { GestureDetector, Gesture } from 'react-native-gesture-handler'; import { Whiteboard } from './Whiteboard'; export const _WhiteboardContainer = /*#__PURE__*/React.forwardRef((_props, webviewRef) => { const fullScreenWhiteboard = useSelector(state => state.app.fullScreenWhiteboard); return /*#__PURE__*/React.createElement(View, { style: { flex: 1, marginBottom: 4 } }, fullScreenWhiteboard ? null : Platform.OS === 'ios' ? /*#__PURE__*/React.createElement(GestureDetector, { gesture: Gesture.Tap() }, /*#__PURE__*/React.createElement(View, { collapsable: false, style: { flex: 1 } }, /*#__PURE__*/React.createElement(Whiteboard, { ref: webviewRef }))) : /*#__PURE__*/React.createElement(Whiteboard, { ref: webviewRef })); }); export const WhiteboardContainer = /*#__PURE__*/React.memo(_WhiteboardContainer); //# sourceMappingURL=WhiteboardContainer.js.map