diff --git a/ReactCommon/react/renderer/textlayoutmanager/platform/android/react/renderer/textlayoutmanager/TextLayoutManager.h b/ReactCommon/react/renderer/textlayoutmanager/platform/android/react/renderer/textlayoutmanager/TextLayoutManager.h index 396cd5d0e10..ce47d36dcae 100644 --- a/ReactCommon/react/renderer/textlayoutmanager/platform/android/react/renderer/textlayoutmanager/TextLayoutManager.h +++ b/ReactCommon/react/renderer/textlayoutmanager/platform/android/react/renderer/textlayoutmanager/TextLayoutManager.h @@ -36,6 +36,18 @@ class TextLayoutManager { : kSimpleThreadSafeCacheSizeCap) {} ~TextLayoutManager(); + /* + * Not copyable. + */ + TextLayoutManager(TextLayoutManager const &) = delete; + TextLayoutManager &operator=(TextLayoutManager const &) = delete; + + /* + * Not movable. + */ + TextLayoutManager(TextLayoutManager &&) = delete; + TextLayoutManager &operator=(TextLayoutManager &&) = delete; + /* * Measures `attributedString` using native text rendering infrastructure. */