2022-08-24
2098
#react native
Kingsley Ubah
129175
Aug 24, 2022 â‹… 7 min read

Addressing common errors in React Native

Kingsley Ubah 21. Web Developer. Technical Writer. African in Tech.

Recent posts:

TypeScript logo over a pink and white background.

Drizzle vs. Prisma: Which ORM is best for your project?

Compare Prisma and Drizzle ORMs to learn their differences, strengths, and weaknesses for data access and migrations.

Temitope Oyedele
Nov 21, 2024 â‹… 10 min read
Practical Implementation Of The Rule Of Least Power For Developers

Practical implementation of the Rule of Least Power for developers

It’s easy for devs to default to JavaScript to fix every problem. Let’s use the RoLP to find simpler alternatives with HTML and CSS.

Timonwa Akintokun
Nov 21, 2024 â‹… 8 min read
Rust logo over black marble background.

Handling memory leaks in Rust

Learn how to manage memory leaks in Rust, avoid unsafe behavior, and use tools like weak references to ensure efficient programs.

Ukeje Goodness
Nov 20, 2024 â‹… 4 min read
Robot pretending to be a person.

Using curl-impersonate in Node.js to avoid blocks

Bypass anti-bot measures in Node.js with curl-impersonate. Learn how it mimics browsers to overcome bot detection for web scraping.

Antonello Zanini
Nov 20, 2024 â‹… 13 min read
View all posts

2 Replies to "Addressing common errors in React Native"

  1. Thanks for the above solution. I am just not clear on one thing. Do I need to run react-native bundle everytime I add a new image to my application? It solved the server issue, but I have never had to do that on previous react-native projects.

  2. Hi Kingsley.

    I had the problem mentioned here.
    https://blog.logrocket.com/addressing-common-errors-react-native/#unable-load-script

    While your solution did work, I think there is a better one out there. I found this post https://proandroiddev.com/bundling-react-native-during-android-release-builds-ec52c24e200d, and it made me realise it may be something else, because when I ran your command it bundled up my images. That would mean I would need to run the command from scratch every time I add a new images.

    The way that I fixed it was basically that it couldn’t find the entry file (and why your fix did work as well), but the real fix was to update my app/build.gradle and to specify the entry file, entryFile = file(“../index.tsx”).

    So basically the error is saying it can’t find your entry file, and this seemed to have fixed it 🙂

Leave a Reply