22 lines
425 B
TypeScript
22 lines
425 B
TypeScript
import React from 'react'
|
|
import { RefreshControl as RNRefreshControl } from 'react-native'
|
|
|
|
interface RefreshControlProps {
|
|
refreshing: boolean
|
|
onRefresh: () => void
|
|
}
|
|
|
|
export default function RefreshControl({
|
|
refreshing,
|
|
onRefresh,
|
|
}: RefreshControlProps) {
|
|
return (
|
|
<RNRefreshControl
|
|
refreshing={refreshing}
|
|
onRefresh={onRefresh}
|
|
tintColor="#F5F5F5"
|
|
colors={['#F5F5F5']}
|
|
/>
|
|
)
|
|
}
|