LayoutAnimations: ensure that interpolated props are never null

Summary:
ensure that interpolated props are never null

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D26271516

fbshipit-source-id: d012e530e92dabce1e0a7df8edf670e90367a892
This commit is contained in:
Joshua Gross
2021-02-05 00:57:41 -08:00
committed by Facebook GitHub Bot
parent f0a599a112
commit cc9a3e27c2
@@ -1658,6 +1658,7 @@ ShadowView LayoutAnimationKeyFrameManager::createInterpolatedShadowView(
// Animate opacity or scale/transform
mutatedShadowView.props = componentDescriptor.interpolateProps(
progress, startingView.props, finalView.props);
assert(mutatedShadowView.props != nullptr);
// Interpolate LayoutMetrics
LayoutMetrics const &finalLayoutMetrics = finalView.layoutMetrics;