Crash when using defaultSource with FastImage (works fine without it)

I’m experiencing a crash in my app when using the defaultSource prop in FastImage.
If I remove defaultSource, the image loads normally without any issues.

Code snippet:

<FastImage
  accessibilityRole="image"
  defaultSource={SHELF_CARD_IMAGE_FALLBACK}
  testID={testID}
  source={{
    uri: "example_image_url.jpg",
  }}
  style={styles.image}
/>
  1. Without defaultSource: works fine
  2. With defaultSource: app crashes

Package version:

"@amzn/react-native-fast-image": "^3.0.0"

Expected behavior:
App should not crash when using the defaultSource prop. The fallback image should render correctly as described in the docs.

Actual behavior:
The app immediately crashes when defaultSource is provided.

SDK version: 0.20.3719
tested in the Firestick device

I just saw that there is no support for defaultSource in the Kepler library, you can disregard this post please.

Hi @Dionisio
Sure. Contact us if you need future assistance.
Warm regards,
Ivy

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.