【发布时间】:2016-11-08 20:41:09
【问题描述】:
我目前正在开发一个嵌入 WebView 的 React Native 应用程序。
在 webview 中加载的应用程序使用 Dom 存储。因此,在 Android 上,我必须将“domStorageEnabled”道具设置为 true,否则我的应用程序不会加载。
我想知道我的应用程序是否可以在 iOS 上运行,因为“domStorageEnabled”是一个只有 android 的道具。
iOS dom 存储在使用 WebView 组件时是否默认开启?
【问题讨论】:
-
您使用的是哪个网页视图? UIWeb 视图? WKWebView?
-
对不起,我不知道 react-native 用的是哪一个...
-
@BorisVerebsky 我认为是 UIWebView
标签: ios webview react-native