LLQuizWidget
Pre-requisite
Make sure you initialise React Native SDK.
LLQuizWidget
is a quiz based widget UI component. This widget UI supports two kinds of widget:
WidgetKind.TEXT_QUIZ
WidgetKind.IMAGE_QUIZ
import { LLPollWidget } from '@livelike/react-native';
import { WidgetKind } from '@livelike/javascript';
export function MyWidgetContainer() {
return (
<LLQuizWidget
programId="xxxxx"
widgetId="yyyyy"
widgetKind={WidgetKind.IMAGE_QUIZ}
/>
);
}
Hooks used by LLQuizWidget
LLQuizWidget
LLQuizWidget 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 |
Updated about 2 months ago