avishayil/react-native-user-avatar

Not Dynamic

Closed this issue · 3 comments

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

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?

I have the same Issue for this :(

Seems like it's not the library issue