ReactNativeiOS14内容

ios 14 react native 图片不显示bug

2020-09-18  本文已影响0人  半个木头人

路径react-native/Libraries/Image/RCTUIImageViewAnimated.m

if(_currentFrame) { layer.contentsScale= self.animatedImageScale; layer.contents= (__bridgeid)_currentFrame.CGImage; }

修改成:

if(_currentFrame) { layer.contentsScale= self.animatedImageScale; layer.contents= (__bridgeid)_currentFrame.CGImage; }else{ [superdisplayLayer:layer]; }

 https://github.com/facebook/react-native/issues/29279

上一篇 下一篇

猜你喜欢

热点阅读