David Ewins
Error library

Link.Preview / Link.Menu throws without Link.Trigger

ExpoLikely fix

Expo SDK 57, expo-router 57.0.24

There is no error message for this one, only the symptom in the title.

Cause

The preview and menu need to know which element is the press target.

Fix

Wrap the visible content in <Link.Trigger> alongside <Link.Preview /> / <Link.Menu>. Use useIsPreview() to hide header buttons inside the preview.

More Expo errors

Search all errors