Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

React native webview loses injected data on state change

$
0
0

Is there any way to keep injected javascript data in the webview when there are state changes?

I use the injectJavascript prop to enter data into a web view. The data is entered as expected but when the react native state changes the data is lost which probably means the webview is reloaded. Is there any way to keep this data after state changes?

Verified on android device


Viewing all articles
Browse latest Browse all 16552

Trending Articles