import React, {ReactNode} from 'react'; import { TouchableWithoutFeedback, Platform, StyleProp, ViewStyle, } from 'react-native'; import {TVOSSupport} from './TVOSSupport'; import {_styles} from '../styles'; interface OSSupport { children: ReactNode; containerStyles: StyleProp; onScreenTouch: () => void; showControls: boolean; testID?: string; } export const PlatformSupport = ({ children, onScreenTouch, containerStyles, showControls, testID, }: OSSupport) => { if (Platform.isTV) { return ( <> {children} ); } return ( {children} ); };