Skip to content

Commit 819100e

Browse files
javachefacebook-github-bot
authored andcommitted
Add @nullable annotations to ViewManager.measure() parameters (#57039)
Summary: Adds `Nullable` annotations to the `localData`, `props`, and `state` parameters in `ViewManager.java`'s `measure()` method to match the nullable Kotlin types (`ReadableMap?`) from `MountingManager.kt`. Changelog: [Android][Changed] Corrected nullability of `ViewManager#measure` Differential Revision: D107229856
1 parent 64c9663 commit 819100e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,9 @@ public Map<String, String> getNativeProps() {
442442
*/
443443
public long measure(
444444
Context context,
445-
ReadableMap localData,
446-
ReadableMap props,
447-
ReadableMap state,
445+
@Nullable ReadableMap localData,
446+
@Nullable ReadableMap props,
447+
@Nullable ReadableMap state,
448448
float width,
449449
YogaMeasureMode widthMode,
450450
float height,

0 commit comments

Comments
 (0)