import React from 'react';
import { TouchableWithoutFeedback, Platform, } from 'react-native';
import { TVOSSupport } from './TVOSSupport';
import { _styles } from '../styles';
export const PlatformSupport = ({ children, onScreenTouch, containerStyles, showControls, }) => {
    if (Platform.isTV) {
        return (<>
        <TVOSSupport showControls={showControls} onScreenTouch={onScreenTouch}/>
        {children}
      </>);
    }
    return (<TouchableWithoutFeedback onPress={onScreenTouch} style={[_styles.player.container, containerStyles]}>
      {children}
    </TouchableWithoutFeedback>);
};
//# sourceMappingURL=PlatformSupport.js.map