Cordova-plugin-x-socialsharing iOS

Hello,
I am using the cordova-plugin-x-socialsharing plugin, in iOS (the problem does not occur in Android) when the plugin window is closed, the app’s main window is resized and the navbar is almost invisible. To get around this, I have to run window.reload (), which isn’t really cool.
Anyone know how it can be solved in an elegant way? Thanks.