callstack / callstack/react-native-paper

Better Avatar component

Open
#4,862 0 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
TypeScript
Stars
14.5k
Forks
2.2k
Avg merge
5d 23h
Merged PRs (30d)
12

Description

**Is your feature request related to a problem? Please describe.**
The current Avatar component(s) do the job, but they can do it better. Handling Avatar.Image and Avatar.Text is painful with if/else since it doesn't support fallback.

**Describe the solution you'd like**
A small refactor to the Avatar component to support Image mainly, and fallback to Text

Example:
```typescript


P

```

**Describe alternatives you've considered**
Manually checking for image loading, if it fails then I need to render Avatar.Text instead.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.