import { Platform } from 'react-native';
import Animated from 'react-native-reanimated';
/**
* This component is used to wrap animated views that should only be animated on native.
* @param props - The props for the animated view.
* @returns The animated view if the platform is native, otherwise the children.
* @example
*
* I am only animated on native
*
*/
function NativeOnlyAnimatedView(
props: React.ComponentProps & React.RefAttributes
) {
if (Platform.OS === 'web') {
return <>{props.children as React.ReactNode}>;
} else {
return ;
}
}
export { NativeOnlyAnimatedView };