mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
3d61dc9f36
Summary: Changelog: [Internal] Original commit changeset: 1b8a2efabbfa Original diff D20587681 breaks non-controlled text input. Reviewed By: motiz88 Differential Revision: D20815935 fbshipit-source-id: 70577ed1e5701850ff0e30a6592945a31c2a8bec
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
|