Skip to content

Warning: Failed prop type: DefaultControls: prop type cellsStyle.top-left  #85

@romandomuso

Description

@romandomuso

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions