You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
react-native-css/components does not re-export AssetRegistry (breaks expo-asset on RN 0.88) #570
Since NativeWind v5 / react-native-css redirects every non-internal import ... from "react-native" to react-native-css/components, anything that reads a React Native export missing from components/index.cjs gets undefined.
AssetRegistry became part of the public react-native API in RN 0.88 (index.js has get AssetRegistry()), but it is not listed in src/components/index.cts (and the shipped dist/*/components/index.cjs).
expo-asset does import { AssetRegistry } from 'react-native', so it receives undefined.
src/components/index.cts is a hand-written list of getters. Comparing it with react-native/index.js (0.88.1) by name, AssetRegistry is the only export from the RN side that is missing.
Another data point: this also silently breaks every custom font loaded through expo-font / useFonts, not just symbols. Every family fails with Cannot read property 'getAssetByID' of undefined, the hook returns an error, and all text falls back to the system font, so weights and custom faces disappear with no crash. Seen with nativewind 5.0.0-rc.1 + react-native-css 3.1.0-rc.1 on RN 0.88 / Expo SDK 58, Android.
Workaround until the export is added: in metro.config.js, wrap the resolveRequest that withNativewind returns so that a react-native import coming from node_modules (outside react-native-css / nativewind) resolves to the real package via context.resolveRequest. App code keeps the wrapper. The trade-off is that className on third-party components that spread props onto RN views stops working.
Activity
samquarm commentedon Nov 9, 2026
Another data point: this also silently breaks every custom font loaded through
expo-font/useFonts, not just symbols. Every family fails withCannot read property 'getAssetByID' of undefined, the hook returns an error, and all text falls back to the system font, so weights and custom faces disappear with no crash. Seen with nativewind 5.0.0-rc.1 + react-native-css 3.1.0-rc.1 on RN 0.88 / Expo SDK 58, Android.Workaround until the export is added: in
metro.config.js, wrap theresolveRequestthatwithNativewindreturns so that areact-nativeimport coming fromnode_modules(outside react-native-css / nativewind) resolves to the real package viacontext.resolveRequest. App code keeps the wrapper. The trade-off is thatclassNameon third-party components that spread props onto RN views stops working.mfmsajidh commentedon Nov 10, 2026
Related to #504