mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: This is C++ part of the implementation of Fabric-compatible <TextInput> component on iOS. Changelog: [Internal] Fabric-specific internal change. Reviewed By: JoshuaGross Differential Revision: D19169987 fbshipit-source-id: e2eac9beac6d1e124b5176b4a23676b8e05490c3
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <react/attributedstring/AttributedStringBox.h>
|
|
#include <react/attributedstring/ParagraphAttributes.h>
|
|
#include <react/textlayoutmanager/TextLayoutManager.h>
|
|
|
|
#ifdef ANDROID
|
|
#include <folly/dynamic.h>
|
|
#endif
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
/*
|
|
* State for <TextInput> component.
|
|
*/
|
|
class TextInputState final {
|
|
public:
|
|
/*
|
|
* All content of <TextInput> component.
|
|
*/
|
|
AttributedStringBox attributedStringBox;
|
|
|
|
/*
|
|
* Represents all visual attributes of a paragraph of text represented as
|
|
* a ParagraphAttributes.
|
|
*/
|
|
ParagraphAttributes paragraphAttributes;
|
|
|
|
/*
|
|
* `TextLayoutManager` provides a connection to platform-specific
|
|
* text rendering infrastructure which is capable to render the
|
|
* `AttributedString`.
|
|
*/
|
|
SharedTextLayoutManager layoutManager;
|
|
|
|
/*
|
|
* Revision of the State object.
|
|
*/
|
|
size_t revision{0};
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|