Commit 6622ee5
Remove hasTVPreferredFocus (#58700)
Summary:
Pull Request resolved: #58700
Remove the deprecated `hasTVPreferredFocus` prop from the core `View`, `Button`, and Touchable APIs and from Android native prop registration and Fabric. Persistent focus eligibility remains available through `focusable`, while imperative focus requests are available through `focus()`.
Keep a deprecated no-op `ReactViewManager.setTVPreferredFocus` method solely for binary compatibility with independently compiled `ViewManager` subclasses; it no longer registers a React prop or changes focus.
Changelog:
[General][Removed] - Remove the deprecated `hasTVPreferredFocus` prop
Reviewed By: andrewdacenko
Differential Revision: D122080657
fbshipit-source-id: f7fc8b978e5e8c1234ad9bf4c05cba8270fc05581 parent 5fc6ccb commit 6622ee5
20 files changed
Lines changed: 71 additions & 171 deletions
File tree
- packages/react-native
- Libraries
- Components
- Touchable
- View
- __tests__
- NativeComponent
- ReactAndroid/src/main
- java/com/facebook/react/views/view
- jni/react/fabric
- ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view
- types_DEPRECATED/Libraries/Components
- Touchable
- View
- scripts/cxx-api/api-snapshots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 59 | | |
70 | 60 | | |
71 | 61 | | |
| |||
219 | 209 | | |
220 | 210 | | |
221 | 211 | | |
222 | | - | |
223 | 212 | | |
224 | 213 | | |
225 | 214 | | |
| |||
290 | 279 | | |
291 | 280 | | |
292 | 281 | | |
293 | | - | |
294 | 282 | | |
295 | 283 | | |
296 | 284 | | |
| |||
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 37 | | |
45 | 38 | | |
46 | 39 | | |
| |||
75 | 68 | | |
76 | 69 | | |
77 | 70 | | |
78 | | - | |
79 | 71 | | |
80 | 72 | | |
81 | 73 | | |
| |||
281 | 273 | | |
282 | 274 | | |
283 | 275 | | |
284 | | - | |
285 | 276 | | |
286 | 277 | | |
287 | 278 | | |
| |||
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 29 | | |
38 | 30 | | |
39 | 31 | | |
| |||
345 | 337 | | |
346 | 338 | | |
347 | 339 | | |
348 | | - | |
349 | 340 | | |
350 | 341 | | |
351 | 342 | | |
| |||
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 28 | | |
37 | 29 | | |
38 | 30 | | |
| |||
261 | 253 | | |
262 | 254 | | |
263 | 255 | | |
264 | | - | |
265 | 256 | | |
266 | 257 | | |
267 | 258 | | |
| |||
Lines changed: 0 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | 308 | | |
317 | 309 | | |
318 | 310 | | |
| |||
390 | 382 | | |
391 | 383 | | |
392 | 384 | | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | 385 | | |
402 | 386 | | |
403 | 387 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
364 | 363 | | |
365 | 364 | | |
366 | 365 | | |
| |||
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
| 210 | + | |
212 | 211 | | |
213 | 212 | | |
214 | 213 | | |
| |||
0 commit comments