Quick Start Guide
This Quick Start Guide will help you integrate each functionality and API of the Passio SDK using your custom UI. The guide outlines essential steps and provides examples for a smooth implementation.
Functionality Overview
In this Quick Start Guide, we will cover the following functionalities:
Installation
Configure the SDK
Recognize Image Remote
Food Detail
1. Installation
Mentioned steps to install a private npm package and configure it for Android and IOS
Requirements:
React Native v0.68.0 or higher
Xcode 14.0 or higher
iOS 13 or higher
Android API level 26 or higher
Cocoapods 1.10.1 or higher
In this section, we explore how to configure the Passio SDK using your Passio key. Proper configuration is essential to ensure seamless communication between your application and the SDK.
Steps to Configure the SDK:
Obtain your Passio key from the Passio developer portal.
Follow the integration steps to initialize the SDK within your application.
This section guides you through using the Recognize Image Remote API. You'll learn how to capture images via the camera or select images from the gallery, and display the results in a bottom sheet.
Steps to Use Recognize Image Remote:
Implement image capture functionality.
Call the Recognize Image Remote API with the captured or selected image.
Handle and display the results effectively in a bottom sheet.
In this section, we demonstrate how to display food information, including the name, macronutrients, micronutrients, and how to change the serving size.
Steps to Show Food Detail:
Fetch food details using the appropriate API.
Render the food item's name, macronutrients, and micronutrients in your custom UI.
Provide functionality to adjust the serving size dynamically.
Last updated