{
this.instance = ref;
}} {...nativeProps}>
-
+ { !this.props.hiddenHeader ?
{ this.getRefresh() }
-
+
: null}
{ children }
+ { this.props.showFooter ?
+ { this.getFooterRefresh() }
+
: null }
);
}
+ /**
+ * callback for header
+ */
private getRefresh(): ReactElement | null {
const { getRefresh } = this.props;
if (typeof getRefresh === 'function') {
@@ -83,6 +109,17 @@ export class RefreshWrapper extends React.Component