/** * Copyright (c) Double Symmetry GmbH * Commercial use requires a license. See https://rntp.dev/pricing */ import React from 'react'; import { Platform, type ViewProps } from 'react-native'; import { AirPlayButton } from './AirPlayButton'; import { CastButton } from './CastButton'; type Props = ViewProps & { tintColor?: string }; export function OutputDeviceButton(props: Props) { if (Platform.OS === 'ios') return React.createElement(AirPlayButton, props); if (Platform.OS === 'android') return React.createElement(CastButton, props); return null; }