mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix opacity not being animated on Text component
Reviewed By: shergin Differential Revision: D21523725 fbshipit-source-id: 80be40fd1314b7e1cbaa827ca52f917ba5bc916e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8ffa180d80
commit
43de8ea2ba
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user