M
M
Mikhail Yarema2018-02-09 10:09:30
React Native
Mikhail Yarema, 2018-02-09 10:09:30

How to pass a path through props in React Native?

Good afternoon.
React native has an Image component.
If I write the path through a variable in source. I have an error.
<Image source={require(this.props.sourceImg)} />

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question