mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-05 09:29:07 +08:00
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:
committed by
Facebook Github Bot
parent
84fbad6215
commit
d517214dd4
@@ -420,6 +420,10 @@ static RCTBorderStyle RCTBorderStyleFromBorderStyle(BorderStyle borderStyle) {
|
||||
layer.cornerRadius = cornerRadius;
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user