SDK API (React Native)
After initialize and connect, use getAzeooSDK() from react-native-azeoo-lib for user, theme, navigation, and opening nutrition flows. See the package README and API Reference.
Flow
- initialize — API key and optional
config,theme,deepLinks,safeArea. No user yet. - connect(token, gender, height, weight) — JWT from your backend plus health fields (height in cm, weight in kg). Required before module UI and most calls.
- Same instance — user, theme,
navigateTo/goBack/handleDeepLink,showNutrition(and modal variants).
Example
import { getAzeooSDK } from 'react-native-azeoo-lib';
const sdk = getAzeooSDK();
await sdk.initialize(apiKey, config, theme, deepLinks, safeArea);
await sdk.connect(token, gender, heightCm, weightKg);
await sdk.navigateTo('nutrition', 'search');