react-native-fast-image: [Android] defaultSource not working

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

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 2
  • Comments: 24

Most upvoted comments

if null set source = defaultsource

Any update on this? iOS working well but android