Skip to content
Back

App Crash with android preview build expo

  • 0
  • Android
  • React Native
Sam Li
21 Jul, 2025, 15:48

The expo app with appwrite works fine on web and expo app, but when I do a preview build and install on physical device, it crashed after I open it. The error is com.facebook.react.common.Javascript Exception: TypeError: Cannot read property 'startsWith' of undefined,

I try the react native appwrite template from appwrite github repo, it won't crash on phone, but it shows blank.

I will continue to debug this issue for different version of the package.

If anyone has met this issue or how to fix it, please let me know, thanks a lot!

TL;DR
App crashing on Android preview build with Expo due to "Cannot read property 'startsWith' of undefined" error. React Native Appwrite template from GitHub doesn't crash but shows blank. Developer will continue debugging with different package versions.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more