react-native的数据渲染问题



  • dataSource: ds.cloneWithRows([
    {"title" : "icon", "img" : "icon","moduleData":
    [{"title" : "哈哈哈", "img" : "测试"}]
    },
    {"title" : "icon", "img" : "icon","moduleData":
    [{"title" : "哈哈哈", "img" : "测试"}]
    },
    {"title" : "icon", "img" : "icon","moduleData":
    [{"title" : "哈哈哈", "img" : "测试"}]
    },
    {"title" : "icon", "img" : "icon","moduleData":
    [{"title" : "哈哈哈", "img" : "测试"}]
    }
    我需要渲染moduleData里的数据,该如何写。
    刚开始写RN,求指教
    ]),
    };


登录后回复