mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Prevent ShadowNodeFamily from being subclassed
Summary: Changelog: [internal] ShadowNodeFamily shouldn't be subclassed. `final` keyword prevents it. Reviewed By: JoshuaGross Differential Revision: D27463121 fbshipit-source-id: 0273225246a98acfe095c5d261a266efad51b838
This commit is contained in:
committed by
Facebook GitHub Bot
parent
10830f4db9
commit
faec9cd4ce
@@ -26,7 +26,7 @@ class State;
|
||||
* Represents all things that shadow nodes from the same family have in common.
|
||||
* To be used inside `ShadowNode` class *only*.
|
||||
*/
|
||||
class ShadowNodeFamily {
|
||||
class ShadowNodeFamily final {
|
||||
public:
|
||||
using Shared = std::shared_ptr<ShadowNodeFamily const>;
|
||||
using Weak = std::weak_ptr<ShadowNodeFamily const>;
|
||||
|
||||
Reference in New Issue
Block a user