在图像carahousal中显示来自服务器的图像数组

Show array of image from server in image carahousal

大家好,我正在使用 React Native ImageCarahousal。我想在此显示我的图像数组,它们可以是多个或多个。我需要在我的 imagecarahousal 中证明这一点...... 通常显示这样的静态图像 [{uri:'https://images.pexels.com/photos/889087/pexels-photo-889087.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260'}] 我怎样才能根据多张图片的数组制作它

<ImageCarousel
                 height={300}
                 delay={7000}
                 animate= "true"
                 indicatorSize={10}
                 indicatorColor="white"
                 images={
    [this.props.navigation.state.params.itemimage.map
        ( ( item,i)=> {
                              {uri:item}
                            } ) ]
               }
                 />

试试这个:

 const { params } = this.props.navigation.state;
 <ImageCarousel
                     height={300}
                     delay={7000}
                     animate= "true"
                     indicatorSize={10}
                     indicatorColor="white"
                     images={params.itemimage && params.itemimage.map(item => {uri:item})}
/>