Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
romandomuso opened this issue Jun 29, 2022 · 0 comments

Comments

@romandomuso
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant