From bb98fddbec357e3966be3f599c79266de8ccbe9f Mon Sep 17 00:00:00 2001 From: Tomas Reimers Date: Thu, 17 Aug 2017 00:08:37 -0700 Subject: [PATCH] Add documentation on .focus and .blur Summary: (Write your motivation here.) (Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!) Closes https://github.com/facebook/react-native/pull/15515 Differential Revision: D5648285 Pulled By: hramos fbshipit-source-id: fc1e50ffd18cc234771c5f40f92549e7e87cd28e --- Libraries/Components/TextInput/TextInput.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index da1ae7a019b289..b0c8127edc6ac3 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -96,6 +96,9 @@ const DataDetectorTypes = [ * AppRegistry.registerComponent('AwesomeProject', () => UselessTextInput); * ``` * + * Two methods exposed via the native element are .focus() and .blur() that + * will focus or blur the TextInput programmatically. + * * Note that some props are only available with `multiline={true/false}`. * Additionally, border styles that apply to only one side of the element * (e.g., `borderBottomColor`, `borderLeftWidth`, etc.) will not be applied if