callstack / callstack/react-native-paper
Better Avatar component
- Lenguaje dominante
- TypeScript
- Estrellas
- 14.5k
- Forks
- 2.2k
- Merge medio
- 5 d 23 h
- PR fusionados (30 d)
- 12
Descripción
**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.
Guía de contribución
Línea de trabajo
Empieza por localizar el componente Avatar y sus puntos de entrada existentes Avatar.Image y Avatar.Text. Revisa las pruebas de los componentes cercanos antes de implementar el uso solicitado de AvatarImage y AvatarFallback; se considera terminado cuando una imagen puede renderizarse mostrando texto cuando la imagen no está disponible.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- react-native, typescript
- Área
- mobile
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100