Resource items represent specific objects within a collection, such as products or orders. They provide contextual information on the resource type and link to the object’s detail page.
ResourceItem should be rendered within a
optional = ?
||Unique ID for the resource item.|
||Callback when the resource item is pressed.|
- 📱 All children of ResourceItems are placed in a single view object, which makes recycling the views expensive. Consider making your ResourceItems simple.
- 📱 Any child of ResourceItem that has an
onPresswill take precedence and the
onPressof ResourceItem will not be invoked
|✅ Do||🛑 Don't|
|📱 Keep ResourceItem shallow. Complex hierarchies have performance penalties||📱 Use complex and deep Stack layouts|