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
This commit is contained in:
Valentin Shergin 2018-09-26 13:10:09 -07:00 committed by Facebook Github Bot
parent 84fbad6215
commit d517214dd4
1 changed files with 4 additions and 0 deletions

View File

@ -420,6 +420,10 @@ static RCTBorderStyle RCTBorderStyleFromBorderStyle(BorderStyle borderStyle) {
layer.cornerRadius = cornerRadius; layer.cornerRadius = cornerRadius;
layer.mask = maskLayer; layer.mask = maskLayer;
} }
// After updating `layer`'s parameters we have to redraw on top of it
// all custom content (calling `drawRect:` implemented in subclasses).
[layer setNeedsDisplay];
} }
#pragma mark - Accessibility #pragma mark - Accessibility