mirror of
https://github.com/status-im/react-native.git
synced 2025-02-23 14:48:25 +00:00
Summary: This diff fixes previously broken custom border rendering. We need a dedicated CALayer for border bitmap in order to fully support all UIView capabilities in case if some subclass uses that. Otherwise, any call of `drawRect:` method can override any content which is stored inside `contents` property of CALayer. Q&A: How does it work in current RN? - It does not. All `drawRect:` methods in RCTView subclasses are dysfunctional. How does text view work in current RN? - RCTTextView does not inherit RCTView, so it does not have this problem. How does text view support custom borders in current RN then? - It does not. Reviewed By: PeteTheHeat Differential Revision: D10228805 fbshipit-source-id: 22bc31f41ab1914a97f3a5981cd1b24ebca725cd