Answers for "can not import images in react native"

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 "Javascript"

Browse Popular Code Answers by Language