自定义动态表在本机反应?

时间:2020-08-03 11:45:07

标签: javascript react-native react-native-ui-components

我正在处理动态自定义表,表头及其对应的数据需要更改。

数据的结构

{
  type:"table1",
  headers:["h1", "h2", "h3"],
  columns:[
    ["cell1", "cell2", "cell3"],
    ["cell1", "cell2", "cell3"],
    ["cell1", "cell2", "cell3"],
    ["cell1", "cell2", "cell3"]
  ]
},
{
  type:"table2",
  headers:["h1", "h2", "h3", "h4"],
  columns:[
    ["cell1", "cell2", "cell3", "cell4"],
    ["cell1", "cell2", "cell3", "cell4"],
    ["cell1", "cell2", "cell3", "cell4"],
    ["cell1", "cell2", "cell3", "cell4"]
  ]
}

我从菜单左侧有五个链接。根据五个链接,表标题将更改

0 个答案:

没有答案