I need to show the api return in an sectionlist.
My Return API is:
console.log(apidata) Return is: Array [ Object { "descfolder": "Folder Test", "enable": 1, "folderid": 1, "id": 6, "url": "http://www.yahoo.com.", "userid": 2, "usernamepassword": "cx8", }, Object { "descfolder": "Folder Test", "enable": 1, "folderid": 1, "id": 7, "url": "Www.amazon.com", "userid": 2, "usernamepassword": "cx7", }, Object { "descfolder": "FolderXXX", "enable": 1, "folderid": 2, "id": 5, "url": "http://www.xxxx.com", "userid": 2, "usernamepassword": "cy558", }, Object { "descfolder": "FolderXXX", "enable": 1, "folderid": 2, "id": 8, "url": "Http Secreto", "userid": 2, "usernamepassword": "cxfd222", }, Object { "descfolder": "Folder5", "enable": 1, "folderid": 3, "id": 4, "url": "URL997", "userid": 2, "usernamepassword": "cxd654", }, ]
Like the SectionList example: https://reactnative.dev/docs/sectionlist
I want show the sectionList like the example below
Folder2 CX7 CX8 FolderXXX cy558 cxfd222 Folder5 cxd654https://stackoverflow.com/questions/65385990/show-json-in-sectionlist-react-native December 21, 2020 at 07:53AM
没有评论:
发表评论