by leena-ai | v1.0.5
Add a plugin description
npm i --save @leena-ai/sdk
  • Version: 1.0.5
  • GitHub:
  • Downloads:
    • Last Day:   0
    • Last Week:  0
    • Last Month: 0


ns plugin add @leena-ai/sdk


XML + Typescript

  1. Add xmlns to Page element

  2. Use the name of xmlns as a selector

  3. Leena SDK exports the component named Sdk which can be used to open a Leena bot


    xmlns:ln="@leena-ai/sdk" navigatingTo="navigatingTo" class="page">
    <!-- Here Goes your Header and any other UI -->
    <ln:Sdk clientId="{{ clientId }}" token="changeme"></ln:Sdk>

Nativescript Angular

  1. Import NativeScriptSdkModule in the module you want to load Leena App
  2. Leena SDK exports a component named Sdk that can used like any other Angular component

Note: Use a <GridLayout> instead of <StackLayout> if the UI does not load


Property Default Required Description
clientId - Yes The client ID for Leena bot.
token - Yes The app token which will authenticate the user with Leena App


Apache License Version 2.0