jobtoday/react-native-image-viewing

"require('./image.png')" not working

Closed this issue · 1 comments

I need use "require('./image.png')" into images Attribute, but stay only black screen when I open the Viewer, is not possible use something like this: "images={require('./image1.png')}" ??

the response is: put on a "[]" you will have something like this:

Before:

images={require('./image1.png')}

After:

images={[require('./image1.png')]}

This will work!