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:

Nx Adoption Guide: Overview, Examples, And Alternatives

Nx adoption guide: Overview, examples, and alternatives

Let’s explore Nx features, use cases, alternatives, and more to help you assess whether it’s the right tool for your needs.

Andrew Evans
Mar 28, 2024 â‹… 9 min read
Understanding Security In React Native Applications

Understanding security in React Native applications

Explore the various security threats facing React Native mobile applications and how to mitigate them.

Wisdom Ekpotu
Mar 27, 2024 â‹… 10 min read
Warp Adoption Guide: Overview, Examples, And Alternatives

warp adoption guide: Overview, examples, and alternatives

The warp web framework for Rust offers many enticing features. Let’s see when and why you should consider using warp in your projects.

Ukeje Goodness
Mar 26, 2024 â‹… 8 min read
Integrating Next Js And Signalr For Enhanced Real Time Web App Capabilities

Integrating Next.js and SignalR to build real-time web apps

In this tutorial, you’ll learn how to integrate Next.js and SignalR to build an enhanced real-time web application.

Clara Ekekenta
Mar 25, 2024 â‹… 8 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