-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
|
||
## Overview | ||
|
||
The React Native Embed SDK is a library that allows you to embed a Thoughtspot component in your mobile application. | ||
|
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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 | ||
} |
There was a problem hiding this comment.
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]]]); |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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.
onErrorSDK?.(error); | ||
console.error(error, errorMessage); |
There was a problem hiding this comment.
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.
No description provided.