You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I own some screens with Image as a full background, i have flickering moment when the navigator push another screen. I'm new with react-native (6 days), i don't recognize this issue is related to this library or react-native instead.
I realize the Image component needed some of time to load my image raw. Any advice for me? i have idea for giving the Image a fade-in animation, after they loaded. Have a better solution?
Thanks
Reacted by indivisable, Dan Wilt, Cole Winans, Grigore Danciu, Patrick Bassut, ravikumar578, Victor, Son Le Van and Ludo
i am having this same issue but without full size images. i have a dark background and if i disable the animation i get a brief flicker of a white background.
Same issue here, @guyca any idea about a fix ?
I see two possible solutions:
1/ We could define a backgroundColor in the navigatorStyles ?
2/ Prerender the view before it's pushed ?
Hey, I finally found the issue on my side.
I was using TouchableHighlight to handle the click where I was pushing my new view and this was the cause of my animation issue !
Pretty weird.. hope it'll maybe help some people
I used TouchableWithoutFeedback for the moment.
But yes this is a problem indeed, maybe the solution would be to execute the navigator on a different thread ?
Well maybe you have a different problem, but in my case it was the issue.
Interesting article about RN perfs: http://facebook.github.io/react-native/docs/performance.html
I guess the main thread is too busy to perform the work under 16.67ms causing frames drop (white flickering)
I'm having these issues of white flickering on Android for the starting screens that have an image background. How can I solve it knowing that a color is not an option since it is too much different from the background images? On iOS I solved it with screenBackgroundImageName but, Android has not support for that. Am I missing something for setting Images as backgrounds for screens??
@guyca Its a kind of a fade with white only when calling the startSingleScreenApp or startTabBasedApp functions. Anyway, it seems that I solved the problem by adding this:
I had exactly the same issue running TouchableHighlight.
Found a pretty good solution setting up the prop underlayColor of TouchableHighlight to the same dark color of my view alongside with setting cardStyle: { backgroundColor: '#242424' } on my StackNavigator options. Working like a charm!
Activity
wgormley commentedon Apr 21, 2016
i am having this same issue but without full size images. i have a dark background and if i disable the animation i get a brief flicker of a white background.
maxs15 commentedon May 26, 2016
Same issue here, @guyca any idea about a fix ?
I see two possible solutions:
1/ We could define a backgroundColor in the navigatorStyles ?
2/ Prerender the view before it's pushed ?
ninjz commentedon May 26, 2016
Is this somehow related to this issue #38 i'm having?
maxs15 commentedon May 27, 2016
Could be yes, @artald @guyca are you aware of this issue ?
It is currently the only thing preventing me from being able to use this awesome component
guyca commentedon May 30, 2016
Hey guys. Are you experiencing these issues in Android or iOS?
Could one of you please provide us a sample project where this issue is recreated?
maxs15 commentedon May 31, 2016
Hey, I finally found the issue on my side.
I was using
TouchableHighlightto handle the click where I was pushing my new view and this was the cause of my animation issue !Pretty weird.. hope it'll maybe help some people
maxs15 commentedon Jun 17, 2016
I used TouchableWithoutFeedback for the moment.
But yes this is a problem indeed, maybe the solution would be to execute the navigator on a different thread ?
maxs15 commentedon Jun 17, 2016
Well maybe you have a different problem, but in my case it was the issue.
Interesting article about RN perfs: http://facebook.github.io/react-native/docs/performance.html
I guess the main thread is too busy to perform the work under 16.67ms causing frames drop (white flickering)
maxs15 commentedon Jun 18, 2016
Awesome @dropfen ! Good job
guyca commentedon Jun 18, 2016
@dropfen Good job! Thanks.
reyalpsirc commentedon Nov 14, 2017
I'm having these issues of white flickering on Android for the starting screens that have an image background. How can I solve it knowing that a color is not an option since it is too much different from the background images? On iOS I solved it with
screenBackgroundImageNamebut, Android has not support for that. Am I missing something for setting Images as backgrounds for screens??guyca commentedon Nov 15, 2017
Is it a flicker or a fade animation? did you try defining
fadeDurarion: 0on the image?reyalpsirc commentedon Nov 15, 2017
@guyca Its a kind of a fade with white only when calling the
startSingleScreenApporstartTabBasedAppfunctions. Anyway, it seems that I solved the problem by adding this:app/res/values/styles.xml:
app/res/anim/no_animation.xml:
Please let me know if this was the correct approach or not.
dxuartz commentedon Mar 30, 2018
I had exactly the same issue running TouchableHighlight.
Found a pretty good solution setting up the prop underlayColor of TouchableHighlight to the same dark color of my view alongside with setting cardStyle: { backgroundColor: '#242424' } on my StackNavigator options. Working like a charm!