'IOS app crashes on first load in production build - React Native Expo

I am in a very confusing situation where my expo built app runs perfectly fine in my local environment but after building with EAS and when I run it on TestFlight the app crashes on the first load. But surprisingly when I open again it works fine.

Errors based on App store connect crash report

enter image description here

Error recorded on my crash logging service sentry enter image description here

With current debugging I am only able to find that EXUpdatesAppController is an expo-updates module but not sure why its throwing an exception.

Would be great if someone can help me out with this as I am not too experienced with Expo and React native



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source