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
Hey @pranshuchittora, can you please assign this to me? Also, I noticed that the Avatar Component is rendering correctly but seems like a default backgroundColor is not set/being overridden.
@pranshuchittora This issue seems to be originating from the library itself. I believe the Avatar component is supposed to have a default backgroundColor even without a given source, but it is set to transparent currently. Thus the title in white isn't visible clearly. Please let me know if I'm wrong.
Activity
sachdeva-shrey commentedon Mar 10, 2021
Hey @pranshuchittora, can you please assign this to me? Also, I noticed that the Avatar Component is rendering correctly but seems like a default
backgroundColoris not set/being overridden.pranshuchittora commentedon Mar 10, 2021
Assigning it to you @sachdeva-shrey
Thanks for the heads-up, if possible can you raise a PR for the same?
sachdeva-shrey commentedon Mar 10, 2021
Sure thing, thanks! @pranshuchittora
sachdeva-shrey commentedon Mar 10, 2021
@pranshuchittora This issue seems to be originating from the library itself. I believe the Avatar component is supposed to have a default
backgroundColoreven without a givensource, but it is set totransparentcurrently. Thus thetitlein white isn't visible clearly. Please let me know if I'm wrong.pranshuchittora commentedon Mar 10, 2021
Try this as the default containerStyle
{background:'#0ff'}(This is just an example, pls use some subtle colour)With this, can also update the props in the playgroundAvatar. I can see some deprecated props like
showaccessoryhttps://reactnativeelements.com/docs/2.3.2/avatar#showaccessory