react-native-web-swiper icon indicating copy to clipboard operation
react-native-web-swiper copied to clipboard

Warning: Failed prop type: DefaultControls: prop type `cellsStyle.top-left`

Open romandomuso opened this issue 3 years ago • 0 comments

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.

romandomuso avatar Jun 29 '22 04:06 romandomuso