alantoa / react-native-lightbox

🖼️ A 60+ fps lightbox component, build upon Reanimated & GestureHandler.
149 stars 12 forks source link

Improved LightBox Component with an Accessible Close Animation Progress #9

Closed Karthik-B-06 closed 9 months ago

Karthik-B-06 commented 9 months ago

Hey @alantoa,

Updated the package with these changes.

  1. Upgrade dependencies in App and run the example
  2. Moved animationProgress Shared Value to Context, making it accessible (Like for my use case, but I think many people might find it useful)
  3. Updated Example App to use the Shared Value Variable.

Using the animationProgress I can change the styles of the Image in both the original and the image in Light Box.

https://github.com/alantoa/react-native-lightbox/assets/35562287/d93e521c-d719-4b53-8aa4-7803c20ee5b6

alantoa commented 9 months ago

LGTM! Thanks for your PR.