Not Dynamic
Closed this issue · 3 comments
SirPhemmiey commented
if i do something like this
<UserAvatar name="John Doe" size={100} color="#6c5ce7" />
it works fine.
But if i do something like
<UserAvatar name={this.state.provider_name} size={100} color="#6c5ce7" />
it says the Avatart requires a name.
Please what do i need to do?
Thanks
alvinmatias69 commented
I think it's caused because this.state.provider_name
doesn't has a value before. Therefore undefined
is passed to the name props. Could you elaborate with your code?
michaelVictoriaDev commented
I have the same Issue for this :(
avishayil commented
Seems like it's not the library issue