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

Animated Zoom Effect #406

Open
drewlowe opened this issue Dec 31, 2024 · 1 comment
Open

Animated Zoom Effect #406

drewlowe opened this issue Dec 31, 2024 · 1 comment

Comments

@drewlowe
Copy link

I saw a very neat Action Sheet in the Lu.ma app where the main content zooms in and out as the sheet is dragged up or down.

Does something like this already exist for react-native-actions-sheet?

const handlePositionChange = (position: number) => {
    // Assuming position is normalized between 0 (closed) and 1 (fully open)
    const zoomValue = 1 - position * 0.1; // Scale between 1 (normal) and 0.9 (zoomed out)
    zoomAnim.setValue(zoomValue);
  };
@ammarahm-ed
Copy link
Owner

Not yet but it can be easily added.

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