Commit Graph

2089 Commits

Author SHA1 Message Date
Dan Abramov 7c7ab50e25 Mark measured nodes as non-collapsable for Android 2024-11-03 05:56:55 +00:00
Dan Abramov d8eaf8b06c Factor props upwards
Also fix handling of missing aspectRatio
2024-11-03 05:10:47 +00:00
Dan Abramov f261484d4c Fix flicker
Reanimated values and React props were out of sync. Prepare each image's styles separately to avoid that.
2024-11-03 04:53:21 +00:00
Dan Abramov 13b2c8f850 Prettier oops 2024-11-03 04:03:14 +00:00
Dan Abramov f0621eed3b Show info on zoomed out tap 2024-11-03 03:42:25 +00:00
Dan Abramov 8e96154a4d Animate cropped borders 2024-11-03 03:41:07 +00:00
Dan Abramov caeb86a368 Force zoom out before close
It's too hard to make closing while zoomed out work.
2024-11-03 03:05:08 +00:00
Dan Abramov bed486f508 Stronger protection against touch races 2024-11-03 02:28:31 +00:00
Dan Abramov a7788e414b Fix gesture recognition outside image 2024-11-03 02:20:59 +00:00
Dan Abramov 5743c4d148 Make iOS-unreliable state Android-only
We didn't really need the only existing xplat usage of it (but it *was* causing bugs).
2024-11-03 02:09:34 +00:00
Dan Abramov 01b350175e Round avatars on mobile web 2024-11-02 15:43:20 +00:00
Dan Abramov 852b8ae271 Rename shapes to semantic meanings
It looks like after all I do want to fork based on those.
2024-11-02 15:43:20 +00:00
Dan Abramov d600cc3343 Preserve shape in lightbox 2024-11-02 15:43:20 +00:00
Dan Abramov e04f8341fd Animate feed/SP avatars too 2024-11-02 15:43:20 +00:00
Dan Abramov 092494f891 Adjust velocity factor 2024-11-02 15:43:05 +00:00
Dan Abramov ca945a9871 More foolproof calculation 2024-11-02 11:09:12 +00:00
Dan Abramov b2019519d4 Fix calculation 2024-11-02 04:27:48 +00:00
Dan Abramov 4949b7cdc5 Respect reduce motion 2024-11-02 04:17:28 +00:00
Dan Abramov 24283427fd Support animating out of different index 2024-11-02 04:08:23 +00:00
Dan Abramov b472d54b34 Fix animation to wrong index 2024-11-02 03:40:26 +00:00
Dan Abramov e8ec306839 Handle different thumbnail aspects 2024-11-02 03:17:01 +00:00
Dan Abramov e01f69132b Prevent gestures during animation 2024-11-02 02:57:39 +00:00
Dan Abramov d8c1354e96 Make flying away nice 2024-11-02 02:52:35 +00:00
Dan Abramov 58e261676b Opacity for controls 2024-11-02 01:28:18 +00:00
Dan Abramov 0032aa1620 Half-broken dismiss animation 2024-11-02 01:12:37 +00:00
Dan Abramov f08e542995 Key lightbox by id 2024-11-02 00:49:53 +00:00
Dan Abramov 68ab910d5a Conslidate ImageView props 2024-11-02 00:46:28 +00:00
Dan Abramov de1a6fe14d Prevent OOB scroll on iOS when zoomed in 2024-11-02 00:35:56 +00:00
Dan Abramov aeda009b2f FIX DA CALCULATION!!!!!!
Holy shit this took me a while. Basically we should be treating the original image center as the scale origin rather than the scaled image center. Otherwise expanding feels unsteady.
2024-11-02 00:35:56 +00:00
Dan Abramov e1d1735f56 Combine two functions 2024-11-02 00:35:56 +00:00
Dan Abramov 03679c4e51 Extract a function 2024-11-02 00:35:56 +00:00
Dan Abramov 4fb92ab059 Animate transform 2024-11-02 00:35:56 +00:00
Dan Abramov d35fcca01e Animate opening 2024-11-02 00:35:56 +00:00
Dan Abramov 0be8c55780 Integrate dismissal with root lightbox view 2024-11-02 00:35:56 +00:00
Dan Abramov fe7d97b0bf Move swipe gesture handling upwards 2024-11-02 00:35:56 +00:00
Dan Abramov 9c28b3a491 Lift the swipe animated value upwards 2024-11-02 00:35:56 +00:00
Dan Abramov 6ee2b05ac0 Move LightboxFooter into the implementation file 2024-11-02 00:35:34 +00:00
Dan Abramov ab6877795f Refactor LightboxFooter props 2024-11-02 00:08:31 +00:00
Dan Abramov 00ff654134 Unindent 2024-11-01 23:50:20 +00:00
Dan Abramov fd27242ce8 Unify lightbox types 2024-11-01 23:49:12 +00:00
Dan Abramov 431c81981c Refactor lightbox footer to render prop 2024-11-01 23:42:42 +00:00
Dan Abramov 5e1a2fcf06 Use safe aspect for lightbox calculations 2024-11-01 22:53:14 +00:00
Dan Abramov c95f8e8659 Handle division by zero in the hook 2024-11-01 22:53:14 +00:00
Dan Abramov 79a61adef7 Wire up known dimensions to the lightbox 2024-11-01 22:53:14 +00:00
Dan Abramov 0ae5033147 Make lightbox use the same cache 2024-11-01 22:53:14 +00:00
Dan Abramov 6b478644e2 Move useImageDimensions into image-sizes 2024-11-01 22:53:14 +00:00
Dan Abramov fe33a21d3e Factor useImageDimensions out of useImageAspectRatio 2024-11-01 22:53:14 +00:00
Dan Abramov 412426bac3 Derive aspect on the fly 2024-11-01 22:53:14 +00:00
Dan Abramov 56740a3d26 Rm unused fields 2024-11-01 22:53:14 +00:00
Dan Abramov 71c4add42e Handle src change 2024-11-01 22:53:14 +00:00