Skip to content

Commit c2d232e

Browse files
update Text gradient colors to be mirrored on ios (facebook#59)
1 parent 03a57c8 commit c2d232e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-native/Libraries/Text/RCTTextAttributes.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ - (UIColor *)effectiveForegroundColor
305305
}
306306

307307
if([cgColors count] > 0) {
308+
[cgColors addObject:cgColors[0]];
308309
CAGradientLayer *gradient = [CAGradientLayer layer];
309310
// this pattern width corresponds roughly to desktop's pattern width
310311
int patternWidth = 100;

0 commit comments

Comments
 (0)