在 React Native 中显示 html 和 "images as http request"

Display html with "images as http request" in React Native

我正在为 android 开发 React Natives 电子邮件客户端(用于特殊目的 - 不是 pop/imap)

我通过 fetch() 以 html 字符串形式接收电子邮件,并在此应用程序中使用 cookie 登录并将其显示为 react-native-render-html.

有这样的图片:

<img src="../d713dae5e1920319c125865c00304b6d/Body/0.1A2C?OpenElement&amp;FieldElemFormat=gif" width="1041" height="447">

此 img src 是 http GET 请求,其中 returns 图片和此请求使用与返回的 htmlstring.

相同的 cookie

我的问题是:如何以简单的方式调用和显示这些图像?硬方式意味着解析、获取、显示(如何显示?)每张图像,我不会这样做这个。能想到webview,传cookie。

所以有人解决过吗?

谢谢。

哇哇哇,我直接将 link 发送到 react-native-webview (expo),它似乎使用了来自 fetch 的 cookie - 我不知道如何,但有效。