Detecting URL change in react native webview, injected javascript not loading on pages navigated to

Currently trying to detect URL change of pages in a react native webview to take an action every time a user navigates to a new page within a website loaded in the webview. I am injecting the following javascript, but it only runs on the load page, and doesn’t run on other pages navigated to […]