Jacob Jaffe

Results 22 comments of Jacob Jaffe

> Do you realize that by simply renaming config keys you will break all the apps using this library? Let's figure out a constructive path forward then! Can these keys...

Here's my solution: ```tsx import Constants from "expo-constants"; // Types on this are wrong. This exists, and `host` does not. const origin = ( Constants?.expoConfig as unknown as { hostUri?:...

I'm unable to get this working with a basic use case. using `state` does trigger an `onChange` for the new value, but does _not_ seem to change the input itself....

Here's an example of what I mean. See how in the native photos app, scrolling is locked horizontally while the entire height of the image is already in frame. Very...

> Were you able to figure this out @JacobJaffe? I haven't attempted to do the axis locking yet. I did get automatic zooming to the full view working, which can...

This is how I do that: ```tsx const useDoubleTapScale = (aspect: number) => { const dimensions = useDimensions(); const phoneAspect = dimensions.screen.width / dimensions.screen.height; // When the image is proportionally...

@jonluca just took a stab at this, ended up being pretty straightforward. See #99

@reyhankaplan thank you for the patch-- works great

Any update on this PR? This behavior is super helpful-- I've been patching this onto my projects (and can continue to, but it's tedious to build a new patch for...

One of the things I like about SWR is the ergonomics around [`mutate`](https://swr.vercel.app/docs/mutation). In the same realm of the discussion in #5073 of helpers around manual cache (mainly optimistic &...