Food Image
Passio SDK provides a component for displaying food images using passioID
and entityType
. The component is called PassioIconView
. Below is an example of how to use it along with its documentation:
Props:
style
(Optional)
Custom styling for the PassioIconView
.
config
Configuration object for the component.
passioID
(Required) The Passio ID is associated with the food item.iconSize
(Required) Size of the icon. UseIconSize.PX90
a 90-pixel size icon, for example. You can choose from predefined sizes or use a custom size.passioIDEntityType
(Required) there are types `group` | 'item' | 'recipe' | 'barcode' and packagedFoodCode
Last updated