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

[v4] | [v2] enablePanDownToClose doesn't update dynamically #1803

Closed
dima-vantage opened this issue Apr 17, 2024 · 2 comments
Closed

[v4] | [v2] enablePanDownToClose doesn't update dynamically #1803

dima-vantage opened this issue Apr 17, 2024 · 2 comments
Labels
bug Something isn't working no-issue-activity

Comments

@dima-vantage
Copy link

Bug

Environment info

Library Version
@gorhom/bottom-sheet ^4.6.1
react-native 0.69.12
react-native-reanimated ^2.17.0
react-native-gesture-handler ^1.10.3

Steps To Reproduce

When passing enablePanDownToClose as a conditional prop it doesn't work, only remember the initial value.

Reproducible sample code

<BottomSheetModal
        ref={ref}
        index={index}
        snapPoints={snapPoints}
        onChange={handleSheetChanges}
        backdropComponent={renderBackdrop}
        enablePanDownToClose={!blocked}
      >
        {children}
      </BottomSheetModal>
@dima-vantage dima-vantage added the bug Something isn't working label Apr 17, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

Copy link

This issue was closed because it has been stalled for 5 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-issue-activity
Projects
None yet
Development

No branches or pull requests

1 participant