Column: remove top gap on mobile, implement pulling feedback

This commit is contained in:
Alex Gleason
2021-11-03 20:35:40 -05:00
parent 9140e1daf0
commit 3e3433218c
17 changed files with 164 additions and 77 deletions

View File

@ -0,0 +1,34 @@
import React from 'react';
import PropTypes from 'prop-types';
import PullToRefresh from 'react-simple-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,
}
handleRefresh = () => {
return new Promise(resolve => resolve());
}
render() {
const { children } = this.props;
return (
<PullToRefresh
onRefresh={this.handleRefresh}
pullingContent={null}
refreshingContent={null}
>
{children}
</PullToRefresh>
);
}
}