Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCAL-237375 rn mobile embed sdk #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yinstardev
Copy link

No description provided.

Comment on lines +1 to +6

## Overview

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add more details on integration and contributing.

@@ -0,0 +1,38 @@
{
"name": "embed-react-native-sdk",
"version": "5.0.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

starting with v5?

},
"@types/react-native": {
"optional": true
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we using specific features from react-native-webview v11? If no then we should add it to the meta object as well.

if (key.startsWith("on")) {
const eventName = key.substring(2);
const embedEventName = EmbedEvent[eventName as keyof typeof EmbedEvent];
setPendingHandlers((prev) => [...prev, [embedEventName, props[key]]]);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to save them to a variable and update state once loop has ended instead of repeated state changes in loop.

@@ -0,0 +1,29 @@
import { WebViewProps } from 'react-native-webview';

export const VERCEL_SHELL_URL = "https://embed-vercel-shell-git-class-based-final-yinstardevs-projects.vercel.app";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update this to the final vercel url.

Comment on lines +20 to +21
onErrorSDK?.(error);
console.error(error, errorMessage);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should skip over console if onErrorSDk is provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants