AnimatedImage
Image component that fades-in the image with animation once it's loaded
Extends: Animated.Image
(meaning you can pass the super component's props as well).
(meaning you can pass the super component's props as well).
PROPS
name | description | type | default |
---|---|---|---|
containerStyle | Additional spacing styles for the container | union | |
imageStyle | Style for the image component | object | |
imageSource | The image source (external or assets) | union | |
animationDuration | Duration for the fade animation when the image is loaded | number | 300 |
loader | A component to render while the image is loading | element | |
testId | Use to identify the avatar in tests | string |
LIVE EXAMPLE
CODE SAMPLE
See example here.