Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Persistent storage for React Native Webview

I'm trying to use local storage in Webview with React Native. I've noticed it gets wiped when unmounting the component containing the Webview.

Is there a way to keep it around? Or would a better solution be to retrieve the values, pass it to AsyncStorage?

like image 889
Naoto Ida Avatar asked Jul 12 '16 04:07

Naoto Ida


1 Answers

I guess you could use react-native-webview-bridge to seed an AsyncStorage storage, you can either way retrieve and set values in a webview with it

like image 90
papacostas Avatar answered Oct 21 '22 21:10

papacostas