Skip to content

Commit

Permalink
Update RCTTextShadowView.m
Browse files Browse the repository at this point in the history
Fixed incorrect opacity behaviour for <Text> component on iOS
  • Loading branch information
shergin committed Apr 13, 2019
1 parent 792585f commit 2915e5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Libraries/Text/Text/RCTTextShadowView.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ - (void)didSetProps:(NSArray<NSString *> *)changedProps
// the RCTTextView backgroundColor to be used, without affecting nested Text
// components.
self.textAttributes.backgroundColor = nil;
self.textAttributes.opacity = NAN;
}

- (BOOL)isYogaLeafNode
Expand Down

0 comments on commit 2915e5c

Please sign in to comment.