Warning: Failed prop type: DefaultControls: prop type `cellsStyle.top-left`
romandomuso opened this issue · comments
romandomuso commented
I get the following error message:
Warning: Failed prop type: DefaultControls: prop type `cellsStyle.top-left` is invalid; it must be a function, usually from the `prop-types` package, but received `undefined`.
when using the Swiper component with the following configuration:
<Swiper
innerContainerStyle={{backgroundColor: colors.lightBlue,}}
loop={true}
controlsProps={{
dotsTouchable: false,
dotsPos: 'bottom',
prevPos:false,
nextPos: false,
cellsStyle: {
'bottom': styles.bottom,
},
cellsContent: {
'bottom': (
<Stack space="medium">
.....
</Stack>
)
}
}}>
.....
</Swiper>
Even when a value is set for cellsStyle.top-left, the warning shows up. Is this an error or can an example be provided of the Swiper component with properties set that would not trigger this warning? I don't see anything for it in the existing documents.