const dogs = [
    {id:1,name:'大金毛'},
    {id:2,name:'二哈'},
    {id:3,name:'拉布拉多'},
    {id:4,name:'柯基'}
]

在JSX循环

{ 
    dogs.map((item,index)=>{
        return (
            <View>{item.name}</View>
        )
    }) 
}