mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Add @Nullable annotations to ViewManager.measure() parameters (#57039)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/57039 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` Reviewed By: adityasharat Differential Revision: D107229856 fbshipit-source-id: 9c686f570160bd9ebad8c7063826aa6ee13a70dd
This commit is contained in:
1 parent
bd250e63e1
commit
63683f091c
1 file changed
+3
-3
+3
-3
@@ -442,9 +442,9 @@ public abstract class ViewManager<T extends View, C extends ReactShadowNode>
|
||||
*/
|
||||
public long measure(
|
||||
Context context,
|
||||
ReadableMap localData,
|
||||
ReadableMap props,
|
||||
ReadableMap state,
|
||||
@Nullable ReadableMap localData,
|
||||
@Nullable ReadableMap props,
|
||||
@Nullable ReadableMap state,
|
||||
float width,
|
||||
YogaMeasureMode widthMode,
|
||||
float height,
|
||||
|
||||
Reference in new issue
Block a user