module import React from 'react' ; import { View } from 'react-native' ; import RtcConfigure from './RTCConfigure' ; import { PropsProvider , PropsInterface , layout } from './PropsContext' ; import LocalControls from './Controls/LocalControls' ; import GridVideo from './GridVideo' ; import PinnedVideo from './PinnedVideo' ; param props PropsInterface const AgoraUIKit = ( props ) => { return ( < PropsProvider value = { props } > < View style = { props . styleProps ?. UIKitContainer } > < RtcConfigure > { props . rtcProps ?. layout === layout . grid ? ( < GridVideo />) : (<PinnedVideo / > ) } < LocalControls showButton = { props . rtcProps . layout !== layout . grid } / > < /RtcConfigure> < /View> < /PropsProvider>); } ; export default AgoraUIKit ;