kirillzyusko / react-native-keyboard-controller

Keyboard manager which works in identical way on both iOS and Android
https://kirillzyusko.github.io/react-native-keyboard-controller/
MIT License
1.4k stars 55 forks source link

feat: onSelectionChange #426

Closed kirillzyusko closed 2 months ago

kirillzyusko commented 2 months ago

📜 Description

Added a new onSelectionChange handler for useFocusedInputHandler 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:

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

iOS

Android

🤔 How Has This Been Tested?

Tested on:

📸 Screenshots (if appropriate):

📝 Checklist

github-actions[bot] commented 2 months ago

📊 Package size report

Current size Target Size Difference
136031 bytes 131465 bytes 4566 bytes 📈
github-actions[bot] commented 2 months ago

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

argos-ci[bot] commented 2 months ago

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