Skip to content

Warning: Failed prop type: The prop children is marked as required in _default, but its value is undefined. #1367

@abbasbphppoets

Description

@abbasbphppoets

android

  • react-native-swiper v 1.6.0?
  • react-native v 0.73.1

i am facing waring when apply swiper

<Swiper
automaticallyAdjustCotentInsets
showsButtons={false}
autoplay={true}
autoplayTimeout={3}
activeDotColor={COLORS.gray}
dotColor={COLORS.gray}
dotStyle={style.dotStyle}
style={[style.slide2, {...slideStyle}]}
activeDotStyle={[
style.dotStyle,
{
backgroundColor: COLORS.red,
},
]}>
{imageData?.map((x, i) => {
return (

<Image
key={i}
resizeMode={resizeMode}
containerStyle={[style.wrap, {...wrapStyle}]}
source={{uri: imageURL(x?.banner_image)}}
PlaceholderContent={
<Image
key={i}
source={require('../../assets/img/placeholder_rectangle.png')}
style={[style.wrap, {...wrapStyle}]}
/>
}
/>

);
})}

below are my code
they give warning related childern

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions