Make receiveCommand args non-nullable (#51806)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/51806

Correct the type of args, which is always non-null. This is backwards-compatible as subclasses can override this method with a more permissive nullable type and still be substitutable.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D75869317

fbshipit-source-id: 8f6c9119140794447eca55be24483a35450d7bb6
This commit is contained in:
Pieter De Baets authored and Facebook GitHub Bot committed 2025-06-06 22:07:09 -07:00
1 parent 2c32bfa758
commit 198c6fc81c
18 files changed
+39 -35

No files matched your search

@@ -4646,6 +4646,7 @@ public abstract class com/facebook/react/uimanager/ViewManager : com/facebook/re
public abstract interface class com/facebook/react/uimanager/ViewManagerDelegate {
public abstract synthetic fun kotlinCompat$receiveCommand (Landroid/view/View;Ljava/lang/String;Lcom/facebook/react/bridge/ReadableArray;)V
public synthetic fun kotlinCompat$receiveCommandNullableArgs (Landroid/view/View;Ljava/lang/String;Lcom/facebook/react/bridge/ReadableArray;)V
public abstract synthetic fun kotlinCompat$setProperty (Landroid/view/View;Ljava/lang/String;Ljava/lang/Object;)V
public fun receiveCommand (Landroid/view/View;Ljava/lang/String;Lcom/facebook/react/bridge/ReadableArray;)V
public fun setProperty (Landroid/view/View;Ljava/lang/String;Ljava/lang/Object;)V