I Have 2 sets data the setA which consist of arrays and setB which consist of array of object
setA = ["1", "5", "3"];
setB =[
{"_id": "1", "name": "jobert", "age": "30"},
{"_id": "2", "name": "alex", "age": "30"},
{"_id": "3", "name": "dianne", "age": "30"},
{"_id": "4", "name": "jhon", "age": "30"},
{"_id": "5", "name": "matt", "age": "30"},
];
i want to show the result as: jobert, matt, dianne
how can i do this on react native?