Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use local images? and videos? #20

Open
mjaimes-madbius opened this issue Sep 18, 2023 · 1 comment
Open

Can I use local images? and videos? #20

mjaimes-madbius opened this issue Sep 18, 2023 · 1 comment

Comments

@mjaimes-madbius
Copy link

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'),
    },
  ];

@devanhlt
Copy link

As i know, you can use renderCustomImage and return custom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants