diff --git a/packages/react-bootstrap-table2/src/bootstrap-table.js b/packages/react-bootstrap-table2/src/bootstrap-table.js
index d42073360..4728cc46d 100644
--- a/packages/react-bootstrap-table2/src/bootstrap-table.js
+++ b/packages/react-bootstrap-table2/src/bootstrap-table.js
@@ -34,8 +34,13 @@ class BootstrapTable extends PropsBaseResolver(Component) {
}
render() {
- const { loading, overlay } = this.props;
- if (overlay) {
+ const { loading, overlay, overlayComponent } = this.props;
+ if (overlayComponent){
+ const LoadingOverlay = overlayComponent;
+
+ { this.renderTable() }
+
+ } else if (overlay) {
const LoadingOverlay = overlay(loading);
return (