import type { RefreshControlProps } from 'react-native' import { RefreshControl as RNRefreshControl } from 'react-native' import { copyComponentProperties } from '../utils' import { useAccentColor } from './useAccentColor' import { useStyle } from './useStyle' export const RefreshControl = copyComponentProperties(RNRefreshControl, (props: RefreshControlProps) => { const style = useStyle(props.className, props) const color = useAccentColor(props.colorsClassName, props) const tintColor = useAccentColor(props.tintColorClassName, props) const titleColor = useAccentColor(props.titleColorClassName, props) const progressBackgroundColor = useAccentColor(props.progressBackgroundColorClassName, props) return ( ) }) export default RefreshControl