Skip to content

Image Source URI vs URL #13478

@mehcode

Description

@mehcode

When adding an image that references a remote file, Android accepts only uri and iOS accepts both uri and url. This is a frustrating bug as you can be working in iOS fine and it breaks silently in Android (images just don't render). Even in the examples this bug exists: url vs uri in the same file.

Looking at the type definition, uri is the correct one. We should probably have a good error message if you use url instead.

  • React Native version: 0.43.0 (but the issue exists on master as well)
  • Platform: both
  • Development Operating System: MacOS

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