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

Drag gesture not working #1

Open
sauldom102 opened this issue Feb 4, 2023 · 1 comment
Open

Drag gesture not working #1

sauldom102 opened this issue Feb 4, 2023 · 1 comment

Comments

@sauldom102
Copy link

For some reason when I drag on top of the component it doesn't do anything, I just can see reflected the current page passed as a prop, but can't change the page by dragging on top of the component.

@gtokman
Copy link
Member

gtokman commented Mar 18, 2023

@sauldom102 Can you post the code snippet on how you are using the component? I've seen this problem when I didn't define a width and height using the style prop.

For example, this is how I have configured our project.

        <PageControlView
          currentPage={currentPageState}
          hidesForSinglePage
          numberOfPages={3}
          onPageChange={(event) => {
            currentPage.value = event.nativeEvent.currentPage
          }}
          currentPageIndicatorTintColor={Colors.primary}
          pageIndicatorTintColor={Colors.gray}
          style={{ width: 60, height: 20, display: data.length > 0 ? 'none' : 'flex' }}
        />

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

2 participants