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 version 2.0.0 provides support on Vega for react-native-fast-image with a performant React Native image component. React Native’s Image component handles image caching similar to browsers. If the server is returning proper cache control headers for images, you get the built-in caching behavior you see in a browser. You might also notice:
  • 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 system-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. For more information about this library and its API, see the README.md file in the FastImage GitHub repo.

Installation

  1. Add the JavaScript library dependency in the package.json file:
  2. Reinstall dependencies using the npm install command.

Examples

API reference

Components

Methods

Known issues and limitations

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

Backward compatibility issue

Vega OS versions v0.12, OS 1.1 (201010334050), and higher are 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 versions v0.12 and higher of the OS, you 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 fix this, you must rebuild your app against the latest version of @amazon-devices/react-native-fast-image:
  1. Make sure that your app’s package.json does not hardcode any old version of fast-image. Recommended to use SemVar version ~2.0.0 to allow your app to pick up the latest patch.
  2. Delete package-lock.json to remove any locked fast-image version. If you are relying on package-lock.json to lock other dependencies, you can manually delete the entry for @amazon-devices/react-native-fast-image.
  3. To make sure that npm doesn’t pick up an old cached version, delete the node_modules folder.
  4. Rebuild your app.

Supported versions

Supported Third-Party Libraries and Services.
Last modified on September 30, 2025