Skip to main content

SDK entry (init and connect)

Call initialize on getAzeooSDK() from react-native-azeoo-lib with the API key and optional config, theme, deepLinks, and safeArea. When the user is signed in, call connect(token, gender, height, weight) (JWT from your backend; height in cm, weight in kg). See the package README and API Reference.

Example

import { getAzeooSDK } from 'react-native-azeoo-lib';

const sdk = getAzeooSDK();
await sdk.initialize(apiKey, { locale: 'en' });
await sdk.connect(jwtToken, 'male', 175, 72);