Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
The @amazon-devices/react-native-fast-image library provides support on Vega for react-native-fast-image, which provides a performant React Native image component. React Native’s 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:
  • Flickering.
  • Cache misses.
  • Low performance loading from cache.
  • Low performance in general.
FastImage is an Image replacement that solves these issues on other platforms besides Web. This library is app-deployed and available to React Native for Vega apps without a separate installation process. The library is autolinking, which your app links to at runtime. The library is guaranteed to be compatible only with the version of React Native for Vega for which it’s built. When you uplevel your app’s version of React Native for Vega, consider the best practice of upleveling its library dependencies. Check the original library documentation for more info about this library, API reference and more here: README.md.

Installation

  1. Add the JavaScript library dependency in the package.json file. Select the tab for your React Native version.
  1. Reinstall dependencies using the npm install command.

Examples

API reference

Component API

Methods

Exceptions on Vega

The React Native for Vega library has a few exceptions in terms of API support. The following features are not supported on the Vega platform.
  • source.headers
  • source.cache
  • tintColor
  • defaultSource
  • onFastImageProgress (Has issues with the dependency Image.onProgress.)

Backward compatibility issue

OS from v0.12 release is not compatible with amzn/react-native-fast-image (npm package) versions . When running an app built against an old version of the npm package on the v0.12+ OS, you will see the following crash on startup: Volta:Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'FastImageTurboModule' could not be found. Verify that a module by this name is registered in the native binary. To avoid this crash, you must rebuild it against the latest version of @amazon-devices/react-native-fast-image:
  1. Check that your app’s package.json doesn’t hardcode an old version for fast-image. Use semvar version ^3.0.0 to allow your app to pick up the latest patch.
  2. Delete package-lock.json to remove any locked fast-image version. You can also manually delete the entry for @amazon-devices/react-native-fast-image in package-lock.json if you’re relying on this file to lock other dependencies.
  3. Delete the node_modules folder so npm won’t pick up an old cached version.
  4. Rebuild.

Supported versions

Additional resources

For information about other libraries, see Supported Third-Party Libraries and Services.
Last modified on August 3, 2026