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}
/>
- Without
defaultSource: works fine - 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