I am trying to store an array of objects, where each object has a string label and corresponding data of type array like:
arrayOfCategory=[
{label: "A", data: Array(36)}
{label: "B", data: Array(20)}
{label: "C", data: Array(20)}
.....
];
ScreenShoot of the inner array:
When I tried to store it like :
AsyncStorage.setItem("arrayOfCategoryStroage", JSON.stringify(arrayOfCategory));
I have an empty array if I get the item from the storage.
AsyncStorage.getItem('arrayOfCategoryStroage').then((value) => {
console.log(JSON.parse(value))
});