dillon1000/react

Commit

Fix fastAddProperties to properly nullify style props (#30334)

## Summary

This PR fixes the `fastAddProperties` function. Now it nullifies a prop
if it was defined in one of the items of a style array, but then set to
`undefined` or `null` in one of the subsequent items. E.g. `style:
[{top: 0}, {top: undefined}]` should evaluate to `{top: null}`. Also
added a test case for that.

## How did you test this change?
```
yarn test packages/react-native-renderer -r=xplat --variant=false
yarn test packages/react-native-renderer -r=xplat --variant=true
yarn flow native
```
Browse files
Changed paths2 files
First-parent comparison
M packages/react-native-renderer/src/ReactNativeAttributePayloadFabric.js ModifiedM packages/react-native-renderer/src/__tests__/ReactNativeAttributePayloadFabric-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…