Skip to content

Can I use local images? and videos? #20

Description

@mjaimes-madbius

I am configuring a gallery that will receive an object with the location of images saved locally in my application, how can I call these?
and how i can add videos in the gallery?

 const images = [
    {
      id: 1,
      url: 'https://www.boredpanda.com/blog/wp-content/uploads/2018/05/cute-bumblebee-butts-2-5af05f96ce9fb__700.jpg',
    },
    {
      id: 2,
      url: 'https://www.boredpanda.com/blog/wp-content/uploads/2018/05/cute-bumblebee-butts-1-5af05f9474219__700.jpg',
    },
    {
      id: 3,
      url: 'https://i.imgur.com/u9eZ3Ws.gif',
    },
    {
      id: 4,
      url: 'https://www.youtube.com/watch?v=dsFpUW48Tnc&list=RDdsFpUW48Tnc&start_radio=1',
    },
    {
      id: 5,
      source: require('../../public/images/Mojito.jpg'),
    },
  ];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions