Performant React Native image component.
Image component handles image caching like browsers for the most part. If the server is returning proper cache control headers for images you’ll generally get the sort of built in caching behavior you’d have in a browser. Even so many people have noticed:
- Cache misses.
- Low performance loading from cache.
- Low performance in general.
Imagereplacement that solves these issues.
FastImageis a wrapper around SDWebImage (iOS) and Glide (Android).
- Aggressively cache images.
- Add authorization headers.
- Prioritize images.
- Preload images.
- GIF support.
- Border radius.
# Install yarn add react-native-fast-image # Automatic linking. (other linking methods listed below) react-native link react-native-fast-image
import FastImage from 'react-native-fast-image' const YourImage = () => ( )