Relative Content

Tag Archive for reactjsnode.jsreact-nativeexpo

React Native Expo app keeps crashing in production build

My react native app works fine in development envorionment, however when I build it (successfully by running eas build –platform android –profile preview) and run on my android phone or emulator it shows app image and then just closes.

React Native Expo app keeps crashing in production build

My react native app works fine in development envorionment, however when I build it (successfully by running eas build –platform android –profile preview) and run on my android phone or emulator it shows app image and then just closes.

Why is the file path different in production compared to development when using Expo?

When I ran my Expo server locally on my iPhone, saving the captured reference of a view worked perfectly and saved the image to the correct path. However, after building the app for production, I’m unable to access logs, and when I try to save an image, it results in a black screen image. I suspect that either the file path is different in production or the capture process isn’t working correctly, but I’m not sure why this is happening.