mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 22:37:14 +08:00
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:
committed by
Facebook Github Bot
parent
3273d23a26
commit
d99e657e39
@@ -46,6 +46,7 @@
|
||||
// the RCTTextView backgroundColor to be used, without affecting nested Text
|
||||
// components.
|
||||
self.textAttributes.backgroundColor = nil;
|
||||
self.textAttributes.opacity = NAN;
|
||||
}
|
||||
|
||||
- (BOOL)isYogaLeafNode
|
||||
|
||||
Reference in New Issue
Block a user