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