# React Native - require(image) error

**URL:** <https://forum.codewithmosh.com/t/react-native-require-image-error/15918>\
**Category:** React Native\
**Created:** [October 18, 2022, 6:02am UTC](https://forum.codewithmosh.com/t/react-native-require-image-error/15918 "2022-10-18T06:02:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wabroqueza](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@wabroqueza](https://forum.codewithmosh.com/u/wabroqueza)\
**Post date:** [October 18, 2022, 6:02am UTC](https://forum.codewithmosh.com/t/react-native-require-image-error/15918/1 "2022-10-18T06:02:10Z")

</div>

Hi, Im encountering an error when passing an Image through props.

 ![Screen Shot 2022-10-18 at 1.58.44 PM](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/c/c73b615d3e789e300eb903c587eae782b13a1759.jpeg)

---

<div class="post-metadata">

**Author:** ![dagdaj](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dagdaj](https://forum.codewithmosh.com/u/dagdaj)\
**Post date:** [February 26, 2023, 12:28am UTC](https://forum.codewithmosh.com/t/react-native-require-image-error/15918/2 "2023-02-26T00:28:30Z")

</div>

Do you recall figuring this out?  
I’m running into more or less similar problems in the exact same spot. Slightly different errors. Mine is looking for a variable ‘image’ that it can’t find.  
I’ve quadruple checked I haven’t missed something. Will check again. And again, if need be. Otherwise, I’ll have to figure a way around it.

---

<div class="post-metadata">

**Author:** ![wabroqueza](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@wabroqueza](https://forum.codewithmosh.com/u/wabroqueza)\
**Post date:** [February 26, 2023, 12:42am UTC](https://forum.codewithmosh.com/t/react-native-require-image-error/15918/3 "2023-02-26T00:42:43Z")

</div>

Yes, but not sure if im right, i just stored the url path to a variable then pass it to the image

---

<div class="post-metadata">

**Author:** ![dagdaj](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dagdaj](https://forum.codewithmosh.com/u/dagdaj)\
**Post date:** [February 26, 2023, 1:20am UTC](https://forum.codewithmosh.com/t/react-native-require-image-error/15918/4 "2023-02-26T01:20:40Z")

</div>

Thanks, for the response. I hadn’t thought of that. That’s my style of brute force fixing something I don’t know how to fix.

I just went and had dinner. Took a look at it with a fresh set of eyes.  
And yah…I’m pretty much a moron. I swear I doublechecked that I imported everything right.

I didn’t.  
Fixed it and it’s fine now.  
Yeah…I wasn’t. You did, though in your code above. The React Native gods were smiling on me,  
And I had some particularly awareness inspiring lasagna for dinner.  
If I had eaten it 2 hours ago, I could have saved myself a lot of time.
