[Android] defaultSource not working
Author: v-x2Created Nov 12, 2022Updated Mar 26, 2026
Labelsbug
Describe the bug
The defaultSource is ignored on Android and the image is not displayed. It works perfect on iOS.
To Reproduce
<FastImage
style={{width: '100%', height: 200, borderRadius: 24}}
source={{
uri: https://site.com/image.jpg,
priority: FastImage.priority.normal,
}}
defaultSource={require('../../../assets/image-placeholder-light.png') }
resizeMode={FastImage.resizeMode.cover}
/>Dependency versions
- React Native version: 0.70.4
- React version: 18.2.0
- React Native Fast Image version: 8.6.1 and 8.63
Source: DylanVann/react-native-fast-image