callstack / callstack/react-native-paper
Better Avatar component
Offen
feature request
- Vorherrschende Sprache
- TypeScript
- Sterne
- 14.5k
- Forks
- 2.2k
- Ø Merge
- 5 T. 23 Std.
- Gemergte PRs (30 T.)
- 12
Beschreibung
**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.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.