refresh webview react native

Issue

How can we refresh/reload previous screen in webview, Lets say we have 2 screens A, B: A -> B When we go back from screen B to screen A,it goes back but with old state/data. How can we refresh it?

Solution

i found the solution, just add unmountInactiveRoutes:true to your createDrawerNavigator class

Answered By – Moez Gharsallah

Leave a Comment