【问题标题】:React Native WebView with iOS and domStorageReact Native WebView 与 iOS 和 domStorage
【发布时间】: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


【解决方案1】:

在 Mac 上试过这个,我可以确认在 iOS WebView 组件上默认启用了 dom 存储。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-10-11
    • 1970-01-01
    • 1970-01-01
    • 2022-10-20
    • 2019-07-26
    • 2023-03-07
    • 2016-12-26
    • 2020-08-14
    相关资源
    最近更新 更多