mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix ViewManager.receiveCommand nullability (#44531)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44531 Changelog: [Internal] Properly propagate the `Nullable` to the delegates. Reviewed By: rshest Differential Revision: D57218665 fbshipit-source-id: 2783ad9b37688e0928ad2e3cf6a2ab1f41190fe7
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1a56b9a808
commit
6876775dc7
+1
-1
@@ -74,7 +74,7 @@ const PropSetterTemplate = ({propCases}: {propCases: string}) =>
|
||||
const CommandsTemplate = ({commandCases}: {commandCases: string}) =>
|
||||
`
|
||||
@Override
|
||||
public void receiveCommand(T view, String commandName, ReadableArray args) {
|
||||
public void receiveCommand(T view, String commandName, @Nullable ReadableArray args) {
|
||||
switch (commandName) {
|
||||
${commandCases}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user