Fixed incorrect opacity behaviour for <Text> component on iOS (#24435)

Summary:
This PR fixes #24229.
Seems currently `opacity` props for Text is being applied twice (one for text color and one for the whole view). This PR disables applying the prop to the text.

[CATEGORY] [TYPE] - Fixed double applying opacity prop for Text
Pull Request resolved: https://github.com/facebook/react-native/pull/24435

Differential Revision: D14932795

Pulled By: cpojer

fbshipit-source-id: f9280fc75f788424cb5f1e42d2e79efdb354d645
This commit is contained in:
Valentin Shergin 2019-04-15 02:37:02 -07:00 committed by Mike Grabowski
parent 17a81be40d
commit f71357aa81

View File

@ -35,6 +35,13 @@
return self;
}
- (void)didSetProps:(NSArray<NSString *> *)changedProps
{
[super didSetProps:changedProps];
self.textAttributes.opacity = NAN;
}
- (BOOL)isYogaLeafNode
{
return YES;