react-native-website icon indicating copy to clipboard operation
react-native-website copied to clipboard

Missing `TextInput.State.*` commands

Open retyui opened this issue 6 months ago • 0 comments

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.

retyui avatar Aug 19 '24 14:08 retyui