Closed kirillzyusko closed 2 months ago
Current size | Target Size | Difference |
---|---|---|
136031 bytes | 131465 bytes | 4566 bytes 📈 |
PR Preview Action v1.4.7
:---:
:rocket: Deployed preview to https://kirillzyusko.github.io/react-native-keyboard-controller/pr-preview/pr-426/
on branch gh-pages
at 2024-05-07 12:12 UTC
The latest updates on your projects. Learn more about Argos notifications ↗︎
Build | Status | Details | Updated (UTC) |
---|---|---|---|
default (Inspect) | ✅ No change detected | - | May 8, 2024, 9:22 AM |
📜 Description
Added a new
onSelectionChange
handler foruseFocusedInputHandler
hook.💡 Motivation and Context
These changes will be a findamental work for resolving https://github.com/kirillzyusko/react-native-keyboard-controller/issues/420
To get
onSelectionChange
events I had to intercept them:KCTextInputCompositeDelegate
(KC stands forKeyboardController
);FrameScheduler
class and went with "long pooling" approach (later on I plan to addaddSelectionListener
method to RN core);Last but not least - interaction with the proxy-delegate will give us an ability to intercept more events, so we may get rid off patch for
react-native-text-input-mask
and get events directly from the delegate.📢 Changelog
Docs
E2E
JS
useFocusedInputSelectionHandler
);cspell
config;iOS
KCTextInputCompositeDelegate
;setForceDelegate
extension forRCTUITextView
;Android
FrameScheduler
class;🤔 How Has This Been Tested?
Tested on:
📸 Screenshots (if appropriate):
📝 Checklist