how to style ul li components in react native? As i'm doing a lms app , for question and answer section i want to list the multiple options for a question with corresponding checkboxes and also save the value of selected item.The fetch response from server is as follows.
json
{
"content": "<p><strong>Preliminary Exam</strong></p>\n",
"meta": {
"access": 1,
"status": 0,
"progress": 0,
"marks": 0,
"max": 60,
"questions": [{
"type": "single",
"hint": "",
"explanation": "",
"content": "<p>2.Question 2</p>\n",
"options": [
"(a) one ",
"(b) two ",
"(c) three ",
"(d) four"
],
"correct": "2",
"marks": 4,
"user_marks": 0,
"status": 0,
"marked": null,
"auto": 1
}]
}
}
i'm rendering the question inside jsx as a list within a card
component. I need the options for a question to be listed with checkboxes. How to do this?Please help.
Aucun commentaire:
Enregistrer un commentaire