Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: state #721

Merged
merged 2 commits into from
Dec 9, 2024
Merged

feat: state #721

merged 2 commits into from
Dec 9, 2024

Conversation

kirillzyusko
Copy link
Owner

@kirillzyusko kirillzyusko commented Dec 7, 2024

📜 Description

Added KeyboardController.state() method.

💡 Motivation and Context

To achieve a parity with Keyboard API from react-native I decided to add KeyboardController.state() method. By design it should act as Keyboard.metrics() method. The reason why I choose state name instead of metrics is because our data structure returns more like state rather than a metrics - instead of height and layout information we also return additional data, such as duration of last animation, timestamp when last open happened, target of focused input and in future potentially type, appearance and maybe other properties.

📢 Changelog

JS

  • added KeyboardController.state() method;

Docs

  • added a reference about KeyboardController.state() method;

🤔 How Has This Been Tested?

Tested manually in example app.

📸 Screenshots (if appropriate):

image

📝 Checklist

  • CI successfully passed
  • I added new mocks and corresponding unit-tests if library API was changed

@kirillzyusko kirillzyusko added documentation Improvements or additions to documentation enhancement New feature or request 🚨 requires API changes 🚨 Changes that requires changes in library API labels Dec 7, 2024
@kirillzyusko kirillzyusko self-assigned this Dec 7, 2024
Copy link
Contributor

github-actions bot commented Dec 7, 2024

PR Preview Action v1.4.8
Preview removed because the pull request was closed.
2024-12-09 09:26 UTC

Copy link
Contributor

github-actions bot commented Dec 7, 2024

📊 Package size report

Current size Target Size Difference
162576 bytes 162388 bytes 188 bytes 📈

Copy link

argos-ci bot commented Dec 7, 2024

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Dec 7, 2024, 2:27 PM

@kirillzyusko kirillzyusko marked this pull request as ready for review December 9, 2024 09:24
@kirillzyusko kirillzyusko merged commit a3bec0d into main Dec 9, 2024
17 checks passed
@kirillzyusko kirillzyusko deleted the feat/state branch December 9, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request 🚨 requires API changes 🚨 Changes that requires changes in library API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant