From 988e3460f8cb7f5319c80775ce0c5c26dece4a8b Mon Sep 17 00:00:00 2001 From: Matthew Chisolm <39521893+mchisolm0@users.noreply.github.com> Date: Thu, 23 May 2024 17:01:03 -0500 Subject: [PATCH] Update ExpoRouter.md Add onPress to renderItem because without it the ShowroomListItem gave the error ReferenceError: Property 'onPress' doesn't exist. --- docs/recipes/ExpoRouter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/recipes/ExpoRouter.md b/docs/recipes/ExpoRouter.md index 9240a526..02f2bfcb 100644 --- a/docs/recipes/ExpoRouter.md +++ b/docs/recipes/ExpoRouter.md @@ -1585,7 +1585,7 @@ export default function DemoShowroomScreen() { useCases: d.data.map((u) => u.props.name as string), }))} keyExtractor={(item) => item.name} - renderItem={({ item, index: sectionIndex }) => ( + renderItem={({ item, index: sectionIndex, onPress }) => ( )} />