## Installation
npm install @edvnz/refresh-controlTo install the BottomSheet component, run the following command:
```
$ npm install @edvnz/refresh-controlor
$ yarn add @edvnz/refresh-control
`
import { RefreshControl } from '@edvnz/refreshControl'
const Component = () => {
const [refreshing, setRefreshing] = useState(false)
const wait = (timeout) => {
return new Promise((resolve) => setTimeout(resolve, timeout))
}
const onRefresh = () => {
setRefreshing(true)
wait(2000).then(() => setRefreshing(false))
}
return (
showsVerticalScrollIndicator={false}
refreshControl={
onRefresh={onRefresh}
tintColor={colors.primary}
size={20}
/>
}
>
{...}
)
}
`
| Prop name | Type | Description |
| :----------- | :-------- | :---------- |
| refreshing | boolean` | |