/** * 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 "AndroidTextInputEventEmitter.h" #include "AndroidTextInputProps.h" #include #include #include namespace facebook { namespace react { extern const char AndroidTextInputComponentName[]; /* * `ShadowNode` for component. */ class AndroidTextInputShadowNode : public ConcreteViewShadowNode< AndroidTextInputComponentName, AndroidTextInputProps, AndroidTextInputEventEmitter> { public: using ConcreteViewShadowNode::ConcreteViewShadowNode; void setContextContainer(ContextContainer *contextContainer); /* * Returns a `AttributedString` which represents text content of the node. */ AttributedString getAttributedString() const; #pragma mark - LayoutableShadowNode Size measure(LayoutConstraints layoutConstraints) const override; void layout(LayoutContext layoutContext) override; private: ContextContainer *contextContainer_{}; }; } // namespace react } // namespace facebook