Commit 33b044c
Migrate YogaNodeJNIBase.java to Kotlin (#56780)
Summary:
X-link: facebook/yoga#1939
Pull Request resolved: #56780
Migrate YogaNodeJNIBase.java to YogaNodeJNIBase.kt, the last hand-written Java source file in the Yoga core library. This required converting all function overrides to Kotlin property overrides where the abstract YogaNode class declares them as val/var properties. Also changed nativePointer visibility in YogaConfigJNIBase from protected to internal to maintain same-module access that Java protected provided via package access.
Changelog:
[Internal] -
Differential Revision: D1046663351 parent 6e26262 commit 33b044c
5 files changed
Lines changed: 725 additions & 936 deletions
File tree
- packages/react-native/ReactAndroid/src/main/java/com/facebook/yoga
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
0 commit comments