Commit 5f6a705
Migrate NativeViewHierarchyManager from Java to Kotlin
Summary:
Mechanical migration of the deprecated `NativeViewHierarchyManager` stub class from Java to Kotlin. All methods remain empty stubs — no behavioral changes.
Key migration decisions:
- Class marked `open` to preserve subclassability from Java/Kotlin
- All non-final public/protected methods marked `open` to match Java virtual-by-default
- `resolveView` and `resolveViewManager` remain `final` (matching the Java original)
- `Nullable` return types converted to Kotlin nullable types (`?`)
- `synchronized` methods use `Synchronized` annotation
- Static initializer converted to companion object `init` block
Changelog:
[Internal]
Differential Revision: D1049997321 parent 29a7691 commit 5f6a705
3 files changed
Lines changed: 188 additions & 221 deletions
File tree
- packages/react-native/ReactAndroid
- api
- src/main/java/com/facebook/react/uimanager
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3461 | 3461 | | |
3462 | 3462 | | |
3463 | 3463 | | |
| 3464 | + | |
3464 | 3465 | | |
3465 | 3466 | | |
3466 | 3467 | | |
| |||
3490 | 3491 | | |
3491 | 3492 | | |
3492 | 3493 | | |
| 3494 | + | |
| 3495 | + | |
| 3496 | + | |
3493 | 3497 | | |
3494 | 3498 | | |
3495 | 3499 | | |
| |||
Lines changed: 0 additions & 221 deletions
This file was deleted.
0 commit comments