Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,15 @@ T RCTConvertTo(SEL selector, id json)

if (objCArgType == @encode(id)) {
id arg = RCTConvertTo<id>(selector, objCArg);

// Handle the special case where there is an argument and it must be nil
// Without this check, the JS side will receive an object.
// See: discussion at
// https://github.com/facebook/react-native/pull/49250#issuecomment-2668465893
if (arg == [NSNull null]) {
return;
}

if (arg) {
[retainedObjectsForInvocation addObject:arg];
}
Expand Down
Loading