hugohua/rn-listview-example

使用其他格式的dataBlob时出错

Opened this issue · 0 comments

这是我的dataBlob数据:

{
    "section1": [
        {
            id: 2,
            pay_user_nickname: null,
            gift_name: "礼包",
        },
        {
            id: 2,
            pay_user_nickname: null,
            gift_name: "礼包",
        }
    ],
    "section2": [
        {
            id: 2,
            pay_user_nickname: null,
            gift_name: "礼包",
        }
    ]
}

数据格式参考官方文档:
https://cloud.githubusercontent.com/assets/11418562/17170791/3ea8ad96-5420-11e6-9b0a-297e2eca6e22.png
没有特别指定rowId和sectionId
现报错如下
Objects are not valid as a React child (found: object with keys {id, pay_user_nickname, gift_name}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of Text.
求解