From 59d92326bb0419cebd0976bd961ad2f47d0ec496 Mon Sep 17 00:00:00 2001 From: Tomas Reimers Date: Wed, 16 Aug 2017 12:13:00 -0400 Subject: [PATCH] Add documentation on .focus and .blur --- 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