Social logout behavior

Is there any way to automatically close the iOS webview after doing a federated logout for gmail? When I login the webview is automatically closed. However when I logout the webview stays open, and I have to press the close button on the webview.

I am using the React-Native SDK

Please let me know if this is possible!