callstack / callstack/react-native-paper
Better Avatar component
Aperta
feature request
- Lingua principale
- TypeScript
- Stelle
- 14.5k
- Fork
- 2.2k
- Merge medio
- 5g 23h
- PR unite (30g)
- 12
Descrizione
**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.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.