gpt4 book ai didi

javascript - 在 React Native 中为应用程序使用 base64 图像字符串崩溃

转载 作者:行者123 更新时间:2023-12-01 16:05:23 24 4
gpt4 key购买 nike

我使用 base64 字符串作为图像源。当我打开我的应用程序时,加载任何带有字体的图像时会立即崩溃。同时应用程序关闭了我。这仅在 Android 上的 IOS 上发生,一切正常。

我使用的是 native 版本:“0.62.2”

例如:

<ImageBackground source={{"uri": 'base64encodedstring'}} />

最佳答案

来自 Using base64 strings for an Image URI crashes app GitHub 上的问题:

For anyone else that comes across this just change the version of Flipper in the podfile to

versions['Flipper'] ||= '~> 0.37.0'

as this is what the pr did



所以,对于这种情况:
 versions['Flipper'] ||= '~> 0.37.0'
versions['Flipper-Folly'] ||= '~> 2.2'
versions['Flipper-RSocket'] ||= '~> 1.1'

关于javascript - 在 React Native 中为应用程序使用 base64 图像字符串崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62334423/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com