mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a69abb419a
Summary: Previously, State revision number was implemented manually as part of the StateData. Now we have it as a built-in concept in State, so we can rely on that. Changelog: [Internal] Fabric-specific internal change. Reviewed By: JoshuaGross Differential Revision: D19467161 fbshipit-source-id: cac907265090730cdb89207aad2b52141cda5dc6
47 lines
1.0 KiB
C++
47 lines
1.0 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;
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|