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

Missing TextInput.State.* commands #4189

Open
retyui opened this issue Aug 19, 2024 · 0 comments
Open

Missing TextInput.State.* commands #4189

retyui opened this issue Aug 19, 2024 · 0 comments

Comments

@retyui
Copy link
Contributor

retyui commented Aug 19, 2024

Description

TextInput has a public methods for blur/focus logic that wasn't mentioned in the docs

TextInput.State.currentlyFocusedInput(): TextInput | undefined | null
TextInput.State.currentlyFocusedField(): number | undefined | null
TextInput.State.focusTextInput(textField: TextInput | undefined | null):  void
TextInput.State.blurTextInput(textField: TextInput | undefined | null):  void

https://github.com/facebook/react-native/blob/0e805a953d8c2e91790a2f9fa2da7850478231b7/packages/react-native/Libraries/Components/TextInput/TextInput.js#L1843-L1849

What is the problem?

undocumented public methods

How can we address it?

update TextInput docs

Why is it important?

Information about public methods need to be available in the docs for all developers

Who needs this?

developers

When should this happen (use version numbers if needed)?

in last 3 ver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants