Common Issue: When using Expo Router with React Native Web, you encounter warnings about
shadow*
properties andpointerEvents
props that aren't compatible with web environments.
This issue affects most Expo Router templates and React Navigation setups when targeting web platforms. The warnings occur because:
- Shadow Properties: React Native's
shadowColor
,shadowOffset
,shadowOpacity
,shadowRadius
don't work on web - needboxShadow*
equivalents - pointerEvents Props: Web compatibility requires
pointerEvents
to be instyle
objects, not as direct props