Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Avatar Component is not rendering #19

Open
pranshuchittora opened this issue Mar 10, 2021 · 5 comments
Open

Bug: Avatar Component is not rendering #19

pranshuchittora opened this issue Mar 10, 2021 · 5 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@pranshuchittora
Copy link
Member

Avatar Component is not rendering -> https://react-native-elements.js.org/#/avatar

Screenshot from 2021-03-10 17-29-28

Possible Cause
Updated Props in the Library

@pranshuchittora pranshuchittora added the good first issue Good for newcomers label Mar 10, 2021
@sachdeva-shrey
Copy link
Contributor

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
Copy link
Member Author

Assigning it to you @sachdeva-shrey
Thanks for the heads-up, if possible can you raise a PR for the same?

@sachdeva-shrey
Copy link
Contributor

Sure thing, thanks! @pranshuchittora

@sachdeva-shrey
Copy link
Contributor

@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.

@pranshuchittora
Copy link
Member Author

pranshuchittora commented 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 showaccessory
https://reactnativeelements.com/docs/2.3.2/avatar#showaccessory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants