I have an object which I got from an API call. I have passed the object through route.params
I want to take warrantyStatus from the tasks array for specific serialNumber which I got from route.params.
I pass the serialNumber through route.params as PSerial
following is my Object
"tasks": Array [
Object {
"completed": false,
"createdAt": null,
"model": "Lexmark:T650N",
"product": "Printer",
"remark": "POWER SUPPLY UNIT NOT WORKING",
"serialNumber": "794DCYL",
"status": null,
"topic": "21081235T69",
"ttId": 27945,
"warrantyStatus": "MAINTENANCE_COMPREHENSIVE",
}, ]
I have taken the serialNumber as PSerial from route.params. So I want to take out the warrantyStatus and show in a Text tag