PassioIconView

A component for displaying food icons from the Passio SDK.

/**
 * A component for displaying food icons from the Passio SDK.
 */
import {
  PassioIconView,
  type IconSize
} from '@passiolife/nutritionai-react-native-sdk-v3'
 <View
          style={{
            height: 60,
            width: 60,
            overflow: 'hidden',
            borderRadius: 30,
          }}
        >
          <PassioIconView
            style={{
              height: 60,
              width: 60,
            }}
            config={{
              passioID: "iconID",
              iconSize: IconSize.PX180,
            }}
          />
        </View>

Last updated