Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question