Error: Cannot access realm that has been closed

I setup the realm in react native application using realm react, when we open the component(screen) for the very first time then it’s working fine but when we come back to same screen then i got the error “Error: Cannot access realm that has been closed”

Please let me know how can i resolve this issue ?