r/reactnative • • Jul 31 '22

I made this elastic scroll effect today

525 Upvotes

20 comments sorted by

33

u/DJYEEZYWORLDPEACE Jul 31 '22

Code and details can be found here

13

u/SyphonJr Jul 31 '22

Nice work. How does it perform on cheaper devices?

→ More replies (2)

2

u/nilsepils94 Aug 01 '22

This looks sick! And it could be even cooler if it would only stretch the part you’re pulling. So if your finger is in the middle of the screen, and you’re pulling to refresh, it would not stretch the bottom half.

1

u/DJYEEZYWORLDPEACE Aug 01 '22

How would the bottom half adjust to the top half moving in position?

2

u/nilsepils94 Aug 01 '22

The bottom half would just move normally, but not get extra spacing between?

16

u/BlueDistribution16 Jul 31 '22

looks really cool!

8

u/DigDugMcDig Jul 31 '22

Doesn't Apple own the patent on that?

0

u/[deleted] Jul 31 '22

[deleted]

7

u/ilikecheese8888 Android Aug 01 '22

Sounds like something Apple would do

3

u/DigDugMcDig Aug 01 '22

The patent is for over scroll bounce and is like 10 years old, so OP can expect a cease and desist letter. Or not, idk, ianal.

2

u/LosingAnchor Aug 02 '22

Cool animation! How are you handling the font size between different devices - iPhone/iPad/etc so that messages aren't too small/big on different device sizes?

2

u/[deleted] Jul 31 '22

[removed] — view removed comment

2

u/thewisefarmerr Jul 31 '22

Did you try on Android 12 or older?

1

u/peacecoder Aug 04 '22

I agree, seems not to work on android.