Answers for "images not appearing in react native ios"

1

images not appearing in react native ios

// Add this in RCTUIImageViewAnimated.m

// .
// .
// .
// previous code.
#pragma mark - CALayerDelegate

- (void)displayLayer:(CALayer *)layer
{
    if (_currentFrame) {
        layer.contentsScale = self.animatedImageScale;
        layer.contents = (__bridge id)_currentFrame.CGImage;
      } 
  else {[super displayLayer:layer];}  // <---- add this 
      
}
Posted by: Guest on March-17-2021
1

images not appearing in react native ios

// Add this in RCTUIImageViewAnimated.m

// .
// .
// .
// previous code.
#pragma mark - CALayerDelegate

- (void)displayLayer:(CALayer *)layer
{
    if (_currentFrame) {
        layer.contentsScale = self.animatedImageScale;
        layer.contents = (__bridge id)_currentFrame.CGImage;
      } 
  else {[super displayLayer:layer];}  // <---- add this 
      
}
Posted by: Guest on March-17-2021

Code answers related to "images not appearing in react native ios"

Code answers related to "Javascript"

Browse Popular Code Answers by Language