callstack / callstack/react-native-paper
Better Avatar component
- 主要言語
- TypeScript
- スター
- 14.5k
- フォーク
- 2.2k
- 平均マージ
- 5日 23時間
- マージ済み PR(30日)
- 12
説明
**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.
コントリビューションガイド
調査の方向性
まず Avatar コンポーネントと、既存のエントリーポイントである Avatar.Image および Avatar.Text を見つけます。要求された AvatarImage と AvatarFallback の使用を実装する前に、近隣のコンポーネントのテストを確認します。画像を利用できない場合にテキストを表示して画像をレンダリングできれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react-native, typescript
- 領域
- mobile
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100