bigbuffet-rw/app/soapbox/components/pullable.js

31 lines
544 B
JavaScript
Raw Normal View History

import PropTypes from 'prop-types';
import React from 'react';
2022-03-21 11:09:01 -07:00
import PullToRefresh from './pull-to-refresh';
/**
* Pullable:
* Basic "pull to refresh" without the refresh.
* Just visual feedback.
*/
export default class Pullable extends React.Component {
static propTypes = {
children: PropTypes.node.isRequired,
}
render() {
const { children } = this.props;
return (
<PullToRefresh
pullingContent={null}
refreshingContent={null}
>
{children}
</PullToRefresh>
);
}
}