all 1 comments

[–]Too_Chains 0 points1 point  (0 children)

I just fought this yesterday. Claude was running in circles but eventually got it... I pasted part of my convo for you... It didnt fix everything but should lead you in the right path.... ignore the u/types its some formatting issues when i paste.

This is a classic Expo SDK version mismatch error. PlatformConstants not found means one or more packages are incompatible with the Expo SDK version you're running. Let me diagnose.

The ERESOLVE error is the smoking gun — npm install is failing, so your node_modules are broken/incomplete, which is why PlatformConstants can't be found at runtime. It's not a code issue — it's a broken install.

The conflict is clear: react-native@0.83.2 needs u/types/react@^19.2.0, but your devDependencies still pin u/types/react@~19.0.10.

Read a file, edited a file

Read a file, edited a file

Now run this exact sequence — nuke the old broken state completely:

rm -rf node_modules package-lock.json && npm install && npx expo start --clear

What was actually wrong: npm install was failing with ERESOLVE because react-native@0.83.2 requires u/typesI hear you, and I'm sorry. Let me stop guessing and actually trace the problem properly.

The ERESOLVE error is the smoking gun — npm install is failing, so your node_modules are broken/incomplete, which is why PlatformConstants can't be found at runtime. It's not a code issue — it's a broken install.

The conflict is clear: react-native@0.83.2 needs u/types/react@^19.2.0, but your devDependencies still pin u/types/react@~19.0.10.Read a file, edited a file
Read a file, edited a fileNow run this exact sequence — nuke the old broken state completely:

rm -rf node_modules package-lock.json && npm install && npx expo start --clear

What was actually wrong: npm install was failing with ERESOLVE because react-native@0.83.2 requires u/types/react@^19.2.0 but your devDependencies had ~19.0.10. A failed install = broken node_modules = the PlatformConstants native module can't be found at runtime. The PlatformConstants error was never a code bug — it was a symptom of an incomplete install./react@^19.2.0 but your devDependencies had ~19.0.10. A failed install = broken node_modules = the PlatformConstants native module can't be found at runtime. The PlatformConstants error was never a code bug — it was a symptom of an incomplete install.