Fix opacity not being animated on Text component

Reviewed By: shergin

Differential Revision: D21523725

fbshipit-source-id: 80be40fd1314b7e1cbaa827ca52f917ba5bc916e
This commit is contained in:
Samuel Susla
2020-05-12 10:32:22 -07:00
committed by Facebook GitHub Bot
parent 8ffa180d80
commit 43de8ea2ba
2 changed files with 9 additions and 2 deletions
@@ -26,7 +26,7 @@ class BaseTextProps {
#pragma mark - Props
const TextAttributes textAttributes{};
TextAttributes textAttributes{};
#pragma mark - DebugStringConvertible (partially)
@@ -28,7 +28,14 @@ ParagraphProps::ParagraphProps(
rawProps,
"selectable",
sourceProps.isSelectable,
{})){};
{})) {
/*
* These props are applied to `View`, therefore they must not be a part of
* base text attributes.
*/
textAttributes.opacity = std::numeric_limits<Float>::quiet_NaN();
textAttributes.backgroundColor = {};
};
#pragma mark - DebugStringConvertible