sency-ai / smkit-ui-react-native-demo

0 stars 1 forks source link

react-native-smkit-ui demo

  1. Installation
  2. Setup
  3. API
  4. Data

1. Installation

run npm install @sency/react-native-smkit-ui

2. Setup

API

1. Configure

[1] First import configure
import { configure } from '@sency/react-native-smkit-ui/src/index.tsx';

[2] then call the configure function with your auth key
try{
  var res = await configure("YOUR_AUTH_KEY");
 }catch (e) {
  console.error(e);
}

To reduce wait time we recommend to call configure on app launch.

⚠️ smkit_ui_library will not work if you don't first call configure.

2. Start

Start Assessment

AssessmentTypes

Name (enum) Description More info
Fitness For individuals of any activity level who seek to enhance their physical abilities, strength, and endurance through a tailored plan. Link
Body360 Designed for individuals of any age and activity level, this assessment determines the need for a preventative plan or medical support. Link
Strength For individuals of any activity level who seek to assess their strength capabilities (core and endurance) * This assessment will be available soon. Contact us for more info. Link
Cardio For individuals of any activity level who seek to assess their cardiovascular capabilities * This assessment will be available soon. Contact us for more info. Link
Custom If Sency created a tailored assessment for you, you probably know it, and you should use this enum.

Having issues? Contact us and let us know what the problem is.