File tree 5 files changed +53
-20
lines changed
5 files changed +53
-20
lines changed Original file line number Diff line number Diff line change 22
22
"license" : " MIT" ,
23
23
"dependencies" : {
24
24
"color" : " ^2.0.1" ,
25
- "component-docs" : " ^0.11.4 " ,
25
+ "component-docs" : " ^0.11.5 " ,
26
26
"linaria" : " ^0.5.0"
27
27
}
28
28
}
Original file line number Diff line number Diff line change @@ -1552,9 +1552,9 @@ commondir@^1.0.1:
1552
1552
version "1.0.1"
1553
1553
resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b"
1554
1554
1555
- component-docs@^0.11.4 :
1556
- version "0.11.4 "
1557
- resolved "https://registry.yarnpkg.com/component-docs/-/component-docs-0.11.%3Cspan%20class="x x-first x-last">4 .tgz#ea97d08de2bd6dd77808d924787d3acea902a6a6 "
1555
+ component-docs@^0.11.5 :
1556
+ version "0.11.5 "
1557
+ resolved "https://registry.yarnpkg.com/component-docs/-/component-docs-0.11.%3Cspan%20class="x x-first x-last">5 .tgz#c02749360f026267240a7b1d3d888469b4fb4019 "
1558
1558
dependencies :
1559
1559
babel-core "^6.26.0"
1560
1560
babel-loader "^7.1.4"
Original file line number Diff line number Diff line change @@ -77,24 +77,39 @@ class Searchbar extends React.Component<Props> {
77
77
78
78
_root : TextInput ;
79
79
80
+ /**
81
+ * @internal
82
+ */
80
83
setNativeProps ( ...args ) {
81
84
return this . _root . setNativeProps ( ...args ) ;
82
85
}
83
86
84
- isFocused ( ...args ) {
85
- return this . _root . isFocused ( ...args ) ;
87
+ /**
88
+ * Returns `true` if the input is currently focused, `false` otherwise.
89
+ */
90
+ isFocused ( ) {
91
+ return this . _root . isFocused ( ) ;
86
92
}
87
93
88
- clear ( ...args ) {
89
- return this . _root . clear ( ...args ) ;
94
+ /**
95
+ * Removes all text from the TextInput.
96
+ */
97
+ clear ( ) {
98
+ return this . _root . clear ( ) ;
90
99
}
91
100
92
- focus ( ...args ) {
93
- return this . _root . focus ( ...args ) ;
101
+ /**
102
+ * Focuses the input.
103
+ */
104
+ focus ( ) {
105
+ return this . _root . focus ( ) ;
94
106
}
95
107
96
- blur ( ...args ) {
97
- return this . _root . blur ( ...args ) ;
108
+ /**
109
+ * Removes focus from the input.
110
+ */
111
+ blur ( ) {
112
+ return this . _root . blur ( ) ;
98
113
}
99
114
100
115
render ( ) {
Original file line number Diff line number Diff line change @@ -194,24 +194,39 @@ class TextInput extends React.Component<Props, State> {
194
194
this . props . onChangeText && this . props . onChangeText ( value ) ;
195
195
} ;
196
196
197
+ /**
198
+ * @internal
199
+ */
197
200
setNativeProps ( ...args ) {
198
201
return this . _root . setNativeProps ( ...args ) ;
199
202
}
200
203
201
- isFocused ( ...args ) {
202
- return this . _root . isFocused ( ...args ) ;
204
+ /**
205
+ * Returns `true` if the input is currently focused, `false` otherwise.
206
+ */
207
+ isFocused ( ) {
208
+ return this . _root . isFocused ( ) ;
203
209
}
204
210
205
- clear ( ...args ) {
206
- return this . _root . clear ( ...args ) ;
211
+ /**
212
+ * Removes all text from the TextInput.
213
+ */
214
+ clear ( ) {
215
+ return this . _root . clear ( ) ;
207
216
}
208
217
209
- focus ( ...args ) {
210
- return this . _root . focus ( ...args ) ;
218
+ /**
219
+ * Focuses the input.
220
+ */
221
+ focus ( ) {
222
+ return this . _root . focus ( ) ;
211
223
}
212
224
213
- blur ( ...args ) {
214
- return this . _root . blur ( ...args ) ;
225
+ /**
226
+ * Removes focus from the input.
227
+ */
228
+ blur ( ) {
229
+ return this . _root . blur ( ) ;
215
230
}
216
231
217
232
render ( ) {
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ type Props = {
21
21
class Text extends React . Component < Props > {
22
22
_root : NativeText ;
23
23
24
+ /**
25
+ * @internal
26
+ */
24
27
setNativeProps ( ...args ) {
25
28
return this . _root . setNativeProps ( ...args ) ;
26
29
}
You can’t perform that action at this time.
0 commit comments