1

When I try to put an image like this, I get this error, does anyone know how to fix it? I've been trying to do the same thing with React and can't solve it for hours. It happens for SVGs and PNGs.

3

1 Answer 1

3

You are having this problem because you cannot give dynamic paths for static assets in React Native. But you can map it from a list if you push all your objects inside one list with require('...) properties.

This should give you more in-depth information about how you can make it possible.

How can I show dynamic images with require() in React Native?

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.