Open v-x2 opened 1 year ago
that not bug, run in production mode then it's will show
that not bug, run in production mode then it's will show
I have the same issue in production. defaultSource not working
I have the same issue in both production and debug mode.
how did u guy provide defaultSource? use defaultSource={require(...)}??? Did you checked url is matched? Did you update newer version?
Any update on this? iOS working well but android
I decided to work around myself. There are 2 cases that need to be handled: url is null and the wrong url
const [isLoadingImage, setLoadingImageState] = React.useState(false)
const [isError, setIsError] = React.useState(false)
<FastImage
resizeMode={FastImage.resizeMode.cover}
defaultSource={icons.avatarDefault}
source={ url && !isError ? { uri: url } : icons.avatarDefault}
onLoadStart={onLoadStart}
onLoadEnd={onLoadEnd}
onError={onError}
/>
const onLoadStart = () => setLoadingImageState(true)
const onLoadEnd = () => setLoadingImageState(false)
const onError = () => setIsError(true)
This is a core problem with the lib! Anyone?? This is still not working in Android in production builds... Guess its time to switch to expo-image
+1
+1
+1
+1
Not working!!!!!!!!
Any update?
@fukemy Are you sure it works for you? Latest version?
@000xuandu work normally to me
@fukemy Can you share the code and version?
"react-native-fast-image": "^8.6.0",
@fukemy
The latest version is 8.6.3
, and I'm using it!
Let me try with your version right now
@fukemy
It's still not working for me on Android.
ride?.driver?.avatar
is null
<FastImage
source={{ uri: ride?.driver?.avatar }}
defaultSource={require('../../assets/driver-default.png')}
style={{
width: 60,
height: 60,
borderRadius: 30,
borderWidth: 4,
borderColor: primaryColor,
}}
/>
"react-native-fast-image": "^8.6.0"
,
if null set source = defaultsource
I just want to confirm what is the root-cause of issue
having the same issue on android (working as expected on ios) any progress on this?
this lib is DEAD
this lib is DEAD @fukemy Is there any alternative? (Still active of course)
Describe the bug The
defaultSource
is ignored on Android and the image is not displayed. It works perfect on iOS.To Reproduce
Dependency versions