Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native 如何循环Json数据以在react native中查看_React Native - Fatal编程技术网

React native 如何循环Json数据以在react native中查看

React native 如何循环Json数据以在react native中查看,react-native,React Native,我想将我在pic中映射的json数据(白线区域)中的一些数据循环到视图(白线区域)如果我很清楚您想要什么,您可以在视图中执行此操作: { result.map((item, index) => <ProductBox key={index} ...(props you want) />) } {result.map((项,索引)=>)} 不要放置代码图像。在注释中添加代码。我也需要它,但我拒绝它。我该怎么办?


我想将我在pic中映射的json数据(白线区域)中的一些数据循环到视图(白线区域)

如果我很清楚您想要什么,您可以在
视图中执行此操作:

{ result.map((item, index) => <ProductBox key={index} ...(props you want) />) }
{result.map((项,索引)=>)}

不要放置代码图像。在注释中添加代码。我也需要它,但我拒绝它。我该怎么办?