Skip to content

Commit d99e657

Browse files
sherginfacebook-github-bot
authored andcommittedApr 15, 2019
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: #24435 Differential Revision: D14932795 Pulled By: cpojer fbshipit-source-id: f9280fc75f788424cb5f1e42d2e79efdb354d645
1 parent 3273d23 commit d99e657

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎Libraries/Text/Text/RCTTextShadowView.m

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ - (void)didSetProps:(NSArray<NSString *> *)changedProps
4646
// the RCTTextView backgroundColor to be used, without affecting nested Text
4747
// components.
4848
self.textAttributes.backgroundColor = nil;
49+
self.textAttributes.opacity = NAN;
4950
}
5051

5152
- (BOOL)isYogaLeafNode

0 commit comments

Comments
 (0)
Please sign in to comment.