LLNumberPredictionWidget
Pre-requisite
Make sure you initialise React Native SDK.
LLNumberPredictionWidget
is a number prediction based widget UI component. This widget UI supports one kind of widget namely:
WidgetKind.IMAGE_NUMBER_PREDICTION
import { LLPredictionWidget } from '@livelike/react-native';
import { WidgetKind } from '@livelike/javascript';
export function MyWidgetContainer() {
return (
<LLNumberPredictionWidget
programId="xxxxx"
widgetId="yyyyy"
widgetKind={WidgetKind.IMAGE_NUMBER_PREDICTION}
/>
);
}
Hooks used by LLNumberPredictionWidget
LLNumberPredictionWidget
LLNumberPredictionWidget Props
Customisation
Refer customisation core concepts to understand different level of component customisation.
programId
programId
Type | Default |
---|---|
String (Required) | No Default |
This is the Id of the program in which a given widget is published
widgetId
widgetId
Type | Default |
---|---|
String (Required) | No Default |
widgetKind
widgetKind
Type | Default |
---|---|
WidgetKind (Required) | No Default |
inlineFollowUp
inlineFollowUp
Type | Default |
---|---|
Boolean | false |
This prop when present would auto render (in place of prediction widget) its corresponding number prediction followup widget whenever it is published from producer suite.
Updated about 2 months ago