将身份验证令牌从 React Native 应用程序传递到基于 html 的 webview

时间:2021-03-30 09:12:21

标签: javascript reactjs react-native webview

我目前正在我的 react-native 应用程序的 web 视图中加载静态 html 页面。 html 有一个图片,只有在用户通过身份验证时才能显示(img src = "private route")。鉴于基于 html 的 webview 没有“headers”选项,我如何将身份验证令牌传递给 webview。我无法使用基于 uri 的 webview,因为其他组件将数据作为 html 传递。

谢谢!

0 个答案:

没有答案