如何从 React Native expo 应用程序中获取的数据中获取 base64 字符串?

How to get base64 string from a data received from fetch in React Native expo app?

我在 React-Native expo 应用程序中使用 fetch。

fetch(url).then( data=>data.blob()).then( data=>

这里是我卡住的地方。如何获取要在数据中使用的 Base64 数据:Image 组件中的方案(使用 URL 不是一个选项)?看起来任何 js base64 转换器都需要字符串,而不是二进制数据。

请指教。 此致

let reader = new FileReader();
reader.readAsDataURL(blob);