Closed kirillzyusko closed 3 months ago
Current size | Target Size | Difference |
---|---|---|
138151 bytes | 137329 bytes | 822 bytes 📈 |
PR Preview Action v1.4.7
:---:
:rocket: Deployed preview to https://kirillzyusko.github.io/react-native-keyboard-controller/pr-preview/pr-464/
on branch gh-pages
at 2024-06-06 15:57 UTC
The latest updates on your projects. Learn more about Argos notifications ↗︎
Build | Status | Details | Updated (UTC) |
---|---|---|---|
default (Inspect) | 👍 Changes approved | 1 changed | Jun 6, 2024, 3:58 PM |
+1kb is also a lot for this PR - need to figure out if uni tests gets included in final bundle 👀
@kgni I slightly revised the implementation - would you mind to re-check that everything works well in your project? 👀
If yes, then I'll merge it and publish a new version soon 🙌
@kirillzyusko seems to be some small issues with the scrolling being stuck now. This was not happening before. Also it feels like performance decreased on the UI thread, I was getting 60 frames before, but this might not be related.
video: https://share.cleanshot.com/tQWgl0KS.
I need to dive deeper into it, will test more tomorrow and get back
@kirillzyusko I dove deeper into my implementation, and removed some workers in my layout component, just to have only the KeyboardAwareScroll doing its thing. No bugs, and also performant. I think you can merge.
📜 Description
Fixed corner cases for
scrollOutput
function, added tests, updated docs and example apps.💡 Motivation and Context
This is a slight revision of https://github.com/kirillzyusko/react-native-keyboard-controller/pull/452
In this PR I fixed some bugs, unified some functions, updated docs, etc.
📢 Changelog
JS
scrollOutput
fromsnapPoints
;scrollOutput
->scrollDistanceWithRespectToSnapPoints
;scrollDistanceWithRespectToSnapPoints
to make less computations in cycle and make a signature of function simpler (now this function always returns absolute scroll position);Docs
snapToOffsets
and howKeyboardAwareScrollView
handles that;🤔 How Has This Been Tested?
Tested locally on iPhone 15 Pro.
Tested on CI.
📝 Checklist