0.0.0-alpha-1 • Published 7 months ago

@thoughtspot/react-native-embed-sdk v0.0.0-alpha-1

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

React Native Mobile SDK

Overview

The React Native Mobile SDK is a library that allows you to embed a Thoughtspot component in your mobile application.

Quick Start

The ThoughtSpot Embed SDK allows you to embed the ThoughtSpot liveboard embed experience.

Embedded Search

// NPM
import { LiveboardEmbed, AuthType, init } from '@thoughtspot/react-native-mobile-sdk';

init({
    thoughtSpotHost: '<%=tshost%>',
    authType: AuthType.TrustedAuthTokenCookieless,
    getAuthToken: async () => Token,
});

const LiveboardEmbedView = () => {

    return (
        <LiveboardEmbed
            ref = {webViewRef}
            liveboardId={liveboardId}
        />
    )
}

Contributing

Local dev server

How to build local sdk pacakge and test.

$ npm run build
$ npm yalc publish

Use this SDK package in your project using

$ npm yalc add react-native-mobile-sdk

Once added this will link your sdk.

React-Native-Mobile-SDK, © ThoughtSpot, Inc. 2025

0.0.0-alpha-1

7 months ago