import React, { FunctionComponent } from 'react'; import { StyleSheet, View, ViewStyle } from 'react-native'; import RTCView from '../RTCView'; interface IProps { style?: ViewStyle; zOrder?: number; renderActionButtons?: () => React.ReactNode; } export const ConferenceScreenSharingView: FunctionComponent = (props: IProps) => { const mergedStyle = { ...defaultStyle.shareVideo, ...props.style }; const zOrder = props.zOrder ?? 0; return ( ); }; export const ConferenceLocalVideo: FunctionComponent = (props) => { const mergedVideoStyle = { ...defaultStyle.localVideoStyle, ...props.style } const zOrder = props.zOrder ?? 0; const renderActionButton = () => { if ( props.renderActionButtons) return props.renderActionButtons(); else return undefined; } return ( {renderActionButton()} ); } const defaultStyle = StyleSheet.create({ shareVideo: { width: '100%', height: '100%', }, localVideoStyle: { width: 120, height: 120, zIndex: 1 }, });