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

问题描述 投票:0回答:1

我正在使用base64字符串作为图像源。当我打开我的应用程序时,当加载任何图像与字体时,立即崩溃。

我使用的是react-native版本。"0.62.2"

例如:

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

react-native
1个回答
1
投票

对图像URI使用base64字符串会导致应用程序崩溃。 问题在GitHub上。

如果有人遇到这种情况,只要把podfile中的Flipper版本改为

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

因为这是Pr所做的

所以,对于这种情况。

 versions['Flipper'] ||= '~> 0.37.0'
 versions['Flipper-Folly'] ||= '~> 2.2'
 versions['Flipper-RSocket'] ||= '~> 1.1'
© www.soinside.com 2019 - 2024. All rights reserved.