antonKalinin / react-native-image-view

Modal component to view images with zoom
https://expo.io/@antonkalinin/react-native-image-view
MIT License
325 stars 102 forks source link

Image does not load #67

Closed GabrielNexT closed 4 years ago

GabrielNexT commented 4 years ago

Hello! Thanks for the repository, it is amazing and will greatly help my project.

In my code I try to load some images with some links, to do that I create a vector with the objects. With the following code:

urls.forEach(item => {
      userPics.push({
        source: {
          uri: item
        },
      })
    })

However, when I open the image, the screen goes black. I really don't know why, maybe the error is quite simple and I didn't detect it.

Ps: When I use the example codes, ie with a previously declared vector, it works perfectly.

antonKalinin commented 4 years ago

Hi @GabrielNexT, thanks for using the package.

First, could you please share a complete code sample via https://gist.github.com/ Second, I would recommend to try https://github.com/jobtoday/react-native-image-viewing as an improved and optimised version of this package

GabrielNexT commented 4 years ago

Ok, I will start using the new version. Gist