Please provide the following:
SDK Version: 39
Platforms(Android/iOS/web/all): all
Is there an alternative to https:// react-native-fast-image that we can use in managed workflow projects?
I am having issues with flickering in the native Image component.
wodin
November 13, 2020, 5:56pm
2
Could you post some example code that shows this problem?
I also had problems with flickering but on ImageBackground. As I searched for an alternative for react-native-fast-image I didn’t found one for the managed workflow. What helped me was setting the Image source this way:
<ImageBackground
source={image}
defaultSource={image} // fixes flickering
style={[styles.fieldContainer, { backgroundColor: gameFieldColor }]}
>
I read this somewhere on stack overflow and well it helped in my case.
How are you importing the image file there, normal require()?
Ah sorry, yes. Like so:
const image = require(‘…/…/…/…/assets/Melamine-wood-001.png’);
system
Closed
December 19, 2020, 8:53pm
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.