Skip to content

Commit d517214

Browse files
sherginfacebook-github-bot
authored andcommitted
Fabric: Fixed missing text on some views with borders
Summary: Apparently, after updating CALayer props we have to request redrowing on top of it manually. Reviewed By: mdvacca Differential Revision: D10053340 fbshipit-source-id: f87311399bab809c9e13a3076f526bbe3f7f3fb4
1 parent 84fbad6 commit d517214

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm

+4
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,10 @@ - (void)invalidateLayer
420420
layer.cornerRadius = cornerRadius;
421421
layer.mask = maskLayer;
422422
}
423+
424+
// After updating `layer`'s parameters we have to redraw on top of it
425+
// all custom content (calling `drawRect:` implemented in subclasses).
426+
[layer setNeedsDisplay];
423427
}
424428

425429
#pragma mark - Accessibility

0 commit comments

Comments
 (0)