Skip to content

Avatar.Image should take standard Image props #1066

@umamialex

Description

@umamialex

Describe the feature

Standard Image props like onError, onLoad, accessibilityLabel, etc. should be able through to the Avatar.Image component.

Motivation

One example is, I'd like to fallback to Avatar.Text if loading an image via URI fails.

Off-topic question: I tried reimplementing Avatar.Image myself since it's so simple, but whenever I use my own component in a FlatList, it terribly lags after about 60 items. When I use Paper's Avatar.Image, everything renders nice and speedily. Is there anything different Paper is doing under the hood to optimize performance? I don't see anything obvious.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions