Skip to content

Commit

Permalink
Fixes regression of prop parsing for elevation
Browse files Browse the repository at this point in the history
Summary:
When refactoring ViewProps in D47492635, `elevation` prop parsing was dropped. This restores it.

## Changelog:
[General] [Fixed] - Fabric regression for elevation prop in Android

Differential Revision: D48269510

fbshipit-source-id: 5b9f07a7299d2e30f37b45e6fb7afcd81d14240d
  • Loading branch information
rozele authored and facebook-github-bot committed Aug 11, 2023
1 parent 4dbf5dc commit a4b3118
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ HostPlatformViewProps::HostPlatformViewProps(
RawProps const &rawProps,
bool shouldSetRawProps)
: BaseViewProps(context, sourceProps, rawProps, shouldSetRawProps),
elevation(
CoreFeatures::enablePropIteratorSetter ? sourceProps.elevation
: convertRawProp(
context,
rawProps,
"elevation",
sourceProps.elevation,
{})),
nativeBackground(
CoreFeatures::enablePropIteratorSetter
? sourceProps.nativeBackground
Expand Down

0 comments on commit a4b3118

Please sign in to comment.