Do not filter out Image.source prop when sending it C++ on New Architecture on Android (#41570)

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

## Changelog:
[Internal] -

This fixes a subtle problem whereas an update to `Image.source` (or `Image.src`) prop on JS side may not end up getting propagated to the C++ side, with New Architecture.

As the result, this can lead to some weird corner cases, whereas e.g. layout doesn't update after the image's size changes.

Differential Revision: D51479305

fbshipit-source-id: 72afb7dfd0ba32f96af4f9a6564b3b8121a597c7
This commit is contained in:
Ruslan Shestopalyuk
2023-11-20 18:10:55 -08:00
committed by Facebook GitHub Bot
parent 3f12c45f65
commit 781b637db4
@@ -90,6 +90,11 @@ export const __INTERNAL_VIEW_CONFIG: PartialViewConfig =
borderTopLeftRadius: true,
resizeMethod: true,
src: true,
// NOTE: New Architecture expects this to be called `source`,
// regardless of the platform, therefore propagate it as well.
// For the backwards compatibility reasons, we keep both `src`
// and `source`, which will be identical at this stage.
source: true,
borderRadius: true,
headers: true,
shouldNotifyLoadEvents: true,