Skip to content

[Image] Fetch different images depending on screen scale #1201

@ide

Description

@ide

Being able to fetch different resolution images depending on the device is good for all the reasons UIKit natively supports @#x, plus saving bandwidth. Something like srcset seems roughly right, and the code could look like:

<Image
  sourceSet={{
    2: {uri: 'http://example.com/image.php?w=200&h=200'}
    3: {uri: 'http://example.com/image.php?w=300&h=300'} 
  }}
/>

cc @vjeux you've probably thought about this

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